diff --git a/desmume/src/NDSSystem.c b/desmume/src/NDSSystem.c index 5549cb858..ac42cb142 100644 --- a/desmume/src/NDSSystem.c +++ b/desmume/src/NDSSystem.c @@ -71,6 +71,7 @@ int NDS_Init(void) { MMU_writeWord(0, 0x000000C, 0xE1B02040); MMU_writeWord(0, 0x0000010, 0xE3B02020); // MMU_writeWord(0, 0x0000010, 0xE2100202); + return 0; } void NDS_DeInit(void) { diff --git a/desmume/src/cflash.c b/desmume/src/cflash.c index efe692b86..75192faed 100644 --- a/desmume/src/cflash.c +++ b/desmume/src/cflash.c @@ -608,6 +608,7 @@ unsigned int cflash_read(unsigned int address) { s = cf_reg_lba1; return s; } + return 0; } diff --git a/desmume/src/saves.c b/desmume/src/saves.c index 5c2df475e..88ad00699 100644 --- a/desmume/src/saves.c +++ b/desmume/src/saves.c @@ -213,6 +213,8 @@ int savestate_load (const char *file_name) { gzclose (file); return 1; +#else + return 0; #endif } @@ -326,6 +328,8 @@ int savestate_save (const char *file_name) { gzclose (file); return 1; +#else + return 0; #endif }