X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=psp%2Fmain.c;h=befc427fa08fd2378eb9664472b68c2c1dba9252;hb=93c0d147a19160bcf970edac8d0e27f93537ae8d;hp=bad56a9a8cfddaf0a3bd2ba865639542f2a14ce7;hpb=f3f1615e5e683c42588648cac06077ba7652d5b8;p=libpicofe.git diff --git a/psp/main.c b/psp/main.c index bad56a9..befc427 100644 --- a/psp/main.c +++ b/psp/main.c @@ -13,14 +13,11 @@ #include "../common/lprintf.h" #include "version.h" -#define GPROF 0 -#define GCOV 0 - -#if GPROF +#ifdef GPROF #include #endif -#if GCOV +#ifdef GCOV #include #include @@ -32,7 +29,7 @@ void dummy(void) } #endif -int main() +int pico_main(void) { lprintf("\nPicoDrive v" VERSION " " __DATE__ " " __TIME__ "\n"); psp_init(); @@ -49,7 +46,7 @@ int main() switch (engineState) { case PGS_Menu: -#if !GPROF +#ifndef GPROF menu_loop(); #else strcpy(romFileName, currentConfig.lastRomFile); @@ -73,7 +70,7 @@ int main() case PGS_Running: emu_Loop(); -#if GPROF +#ifdef GPROF goto endloop; #endif break; @@ -91,10 +88,10 @@ int main() mp3_deinit(); emu_Deinit(); -#if GPROF +#ifdef GPROF gprof_cleanup(); #endif -#if !GCOV +#ifndef GCOV psp_finish(); #endif