示例#1
0
文件: z26.c 项目: nop90/z26-3ds
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;
}                                                         
示例#2
0
文件: c_core.c 项目: cinnamoncoin/z26
void cleanup() {
	kv_CloseSampleFile();
	srv_sound_off();
	srv_DestroyScreen();
}