Beispiel #1
0
s32 FASTCALL OnLoad(emu_info* em)
{
	memcpy(&eminf,em,sizeof(eminf));

	LoadSettings();

	config_scmi=eminf.AddMenuItem(em->RootMenu,-1,L"Config",handle_Config,0);
	config_stami=eminf.AddMenuItem(em->RootMenu,-1,L"Limit Speed && Sync audio",handle_SA,settings.LimitFPS==1);
	config_stami2=eminf.AddMenuItem(em->RootMenu,-1,L"Sync Audio",handle_SA2,settings.LimitFPS==2);
	eminf.AddMenuItem(em->RootMenu,-1,L"DSP Emulation",handle_DSP,settings.DSPEnabled);
	eminf.AddMenuItem(em->RootMenu,-1,L"Mute CDDA",handle_MCDDA,settings.CDDAMute);
	eminf.AddMenuItem(em->RootMenu,-1,L"Mute Sound",handle_GS,settings.GlobalMute);
	

	eminf.AddMenuItem(em->RootMenu,-1,0,0,0);
	eminf.AddMenuItem(em->RootMenu,-1,L"About",handle_About,0);

	eminf.AddMenuItem(em->DebugMenu,-1,L"AICA SGC Debugger",handle_ShowASD,0);
	return rv_ok;
}
Beispiel #2
0
//called when plugin is used by emu (you should do first time init here)
s32 FASTCALL irLoad(emu_info* emu_inf)
{
	if (emu_inf==0)
		return rv_ok;
	memcpy(&emu,emu_inf,sizeof(emu));

	emu.ConfigLoadStr("emu","shortname",iremu_name,0);
	
	irLoadSettings();

	emu.AddMenuItem(emu.RootMenu,-1,"Swap Disc",handle_SwitchDisc,irsettings.LoadDefaultImage);
	emu.AddMenuItem(emu.RootMenu,-1,0,0,0);
	emu.AddMenuItem(emu.RootMenu,-1,"Use Default Image",handle_UseDefImg,irsettings.LoadDefaultImage);
	emu.AddMenuItem(emu.RootMenu,-1,"Select Default Image",handle_SelDefImg,0);
	emu.AddMenuItem(emu.RootMenu,-1,"Patch GDROM region",handle_PatchRegion,irsettings.PatchRegion);
	emu.AddMenuItem(emu.RootMenu,-1,0,0,0);
	emu.AddMenuItem(emu.RootMenu,-1,"About",irhandle_About,0);
	
	
	return rv_ok;
}
Beispiel #3
0
//called when plugin is used by emu (you should do first time init here)
s32 FASTCALL Load(emu_info* param)
{
	memcpy(&emu,param,sizeof(emu));

	LoadSettings();

	mids[0]=emu.AddMenuItem(emu.RootMenu,-1,L"None",handle_mode<0>,0);
	mids[1]=emu.AddMenuItem(emu.RootMenu,-1,L"Modem",handle_mode<1>,0);
	mids[2]=emu.AddMenuItem(emu.RootMenu,-1,L"Lan Adapter",handle_mode<2>,0);
	mids[3]=emu.AddMenuItem(emu.RootMenu,-1,L"BBA",handle_mode<3>,0);

	nide_set_selected();
	
	emu.AddMenuItem(emu.RootMenu,-1,0,0,settings.mode==0);
	
	emu.AddMenuItem(emu.RootMenu,-1,L"About",handle_about,0);
	return rv_ok;
}