Exemplo n.º 1
0
void GuiLoop()
{
	libgui.Mainloop();

	//Make sure emulation is stoped
	Stop_DC();
}
Exemplo n.º 2
0
void Term_DC()
{
	if (dc_inited)
	{
		Stop_DC();
        
        aica_Term();
        pvr_Term();
        mem_Term();
        sh4_cpu->Term();
        plugins_Term();

        Release_Sh4If(sh4_cpu);
        sh4_cpu=NULL;

		dc_inited=false;
        dc_reseted=false;
	}
}
Exemplo n.º 3
0
void SwitchCpu()
{
	if((settings.dynarec.Enable==0 && sh4_cpu->ResetCache==0) ||
	   (settings.dynarec.Enable!=0 && sh4_cpu->ResetCache!=0)  )
	{
		return;//nothing to do ...
	}
	
	bool bStart=false;

	if (sh4_cpu)
	{
		if (sh4_cpu->IsCpuRunning())
		{
			bStart=true;
			Stop_DC();
		}
		sh4_cpu->Term();
	}
	if(settings.dynarec.Enable)
	{
		sh4_cpu=Get_Sh4Recompiler();
		log("Switched to Recompiler\n");
	}
	else
	{
		sh4_cpu=Get_Sh4Interpreter();
		log("Switched to Interpreter\n");
	}

	sh4_cpu->Init();
	

	if (bStart)
		Start_DC();
}
Exemplo n.º 4
0
void EmuStop()
{
	Stop_DC();
}
Exemplo n.º 5
0
void EXPORT_CALL b_EmuStop()
{
	Stop_DC();
}