mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
update ui after savestate load (because loading a savestate can affect whether certain items should be grayed out in the menu)
This commit is contained in:
@ -410,6 +410,8 @@ CFrame::CFrame(wxFrame* parent,
|
||||
g_TASInputDlg = new TASInputDlg(this);
|
||||
Movie::SetInputManip(TASManipFunction);
|
||||
|
||||
State::SetOnAfterLoadCallback(OnAfterLoadCallback);
|
||||
|
||||
// Setup perspectives
|
||||
if (g_pCodeWindow)
|
||||
{
|
||||
@ -859,6 +861,12 @@ int GetCmdForHotkey(unsigned int key)
|
||||
return -1;
|
||||
}
|
||||
|
||||
void OnAfterLoadCallback()
|
||||
{
|
||||
if(main_frame)
|
||||
main_frame->UpdateGUI();
|
||||
}
|
||||
|
||||
void TASManipFunction(SPADStatus *PadStatus, int controllerID)
|
||||
{
|
||||
if (main_frame)
|
||||
|
Reference in New Issue
Block a user