int main() { // isN3DS = 0; // aptOpenSession(); // APT_SetAppCpuTimeLimit(NULL, 80); // enables syscore usage // aptCloseSession(); // APT_CheckNew3DS(NULL, &isN3DS); sdmcArchive = (FS_archive){ARCH_SDMC, (FS_path){PATH_EMPTY, 1, (u8*)""}}; FSUSER_OpenArchive(NULL, &sdmcArchive); z26_3ds_Init(); // !! chdir("sdmc://Atari2600") ; srand(time(0)); def_LoadDefaults(); LaunchedFromCommandline = 0; StartInGUI = 1; GamePaused = 1; cli_ReadParms("z26.gui"); c_emulator(); /* call emulator */ srv_sound_off(); z26_3ds_quit();! fflush(parmfp); fclose(parmfp); return 0; //MessageCode; }
void cleanup() { kv_CloseSampleFile(); srv_sound_off(); srv_DestroyScreen(); }