void nide_set_selected() { for (int i=0;i<4;i++) { if (i==settings.mode) emu.SetMenuItemStyle(mids[i],MIS_Checked,MIS_Checked); else emu.SetMenuItemStyle(mids[i],0,MIS_Checked); } }
void EXPORT_CALL handle_SA2(u32 id,void* w,void* p) { if (settings.LimitFPS==2) settings.LimitFPS=0; else settings.LimitFPS=2; eminf.SetMenuItemStyle(config_stami,settings.LimitFPS==1?MIS_Checked:0,MIS_Checked); eminf.SetMenuItemStyle(config_stami2,settings.LimitFPS==2?MIS_Checked:0,MIS_Checked); SaveSettings(); }
//called when plugin is unloaded by emu , olny if dcInit is called (eg , not called to enumerate plugins) void FASTCALL Term() { TermAudio(); AICA_Term(); term_mem(); eminf.SetMenuItemStyle(config_scmi,0,MIS_Grayed); }
void EXPORT_CALL handle_GS(u32 id,void* w,void* p) { if (settings.GlobalMute) settings.GlobalMute=0; else settings.GlobalMute=1; eminf.SetMenuItemStyle(id,settings.GlobalMute?MIS_Checked:0,MIS_Checked); SaveSettings(); }
void EXPORT_CALL handle_DSP(u32 id,void* w,void* p) { if (settings.DSPEnabled) settings.DSPEnabled=0; else settings.DSPEnabled=1; eminf.SetMenuItemStyle(id,settings.DSPEnabled?MIS_Checked:0,MIS_Checked); SaveSettings(); }
//called when plugin is used by emu (you should do first time init here) s32 FASTCALL Init(aica_init_params* initp) { memcpy(&aica_params,initp,sizeof(aica_params)); init_mem(); AICA_Init(); InitAudio(); eminf.SetMenuItemStyle(config_scmi,MIS_Grayed,MIS_Grayed); return rv_ok; }
void EXPORT_CALL handle_UseDefImg(u32 id,void* w,void* p) { if (irsettings.LoadDefaultImage) irsettings.LoadDefaultImage=0; else irsettings.LoadDefaultImage=1; emu.SetMenuItemStyle(id,irsettings.LoadDefaultImage?MIS_Checked:0,MIS_Checked); irSaveSettings(); }
void EXPORT_CALL handle_PatchRegion(u32 id,void* w,void* p) { if (irsettings.PatchRegion) irsettings.PatchRegion=0; else irsettings.PatchRegion=1; emu.SetMenuItemStyle(id,irsettings.PatchRegion?MIS_Checked:0,MIS_Checked); irSaveSettings(); }