Ejemplo n.º 1
0
bool savestate_save(EMUFILE* outstream)
{
#ifdef HAVE_JIT 
	arm_jit_sync();
#endif

	EMUFILE_MEMORY ms;
	EMUFILE* os = outstream;
   os->fseek(32,SEEK_SET); //skip the header
   writechunks(os);

	//save the length of the file
	u32 len = os->ftell();

	u32 comprlen = 0xFFFFFFFF;
	u8* cbuf;

	//dump the header
	outstream->fseek(0,SEEK_SET);
	outstream->fwrite(magic,16);
	write32le(SAVESTATE_VERSION,outstream);
	write32le(EMU_DESMUME_VERSION_NUMERIC(),outstream); //desmume version
	write32le(len,outstream); //uncompressed length
	write32le(comprlen,outstream); //compressed length (-1 if it is not compressed)

	return true;
}
Ejemplo n.º 2
0
void HK_CpuMode(int, bool justPressed)
{
	arm_jit_sync();
	CommonSettings.use_jit = !CommonSettings.use_jit;
	arm_jit_reset(CommonSettings.use_jit);

	char tmp[256];
	sprintf(tmp,"CPU mode: %s", CommonSettings.use_jit?"JIT":"Interpreter");
	osd->addLine(tmp);
	//WritePrivateProfileInt("Emulation", "CpuMode", CommonSettings.use_jit, IniName)
}