void Pcsx2App::OpenMainFrame() { if( AppRpc_TryInvokeAsync( &Pcsx2App::OpenMainFrame ) ) return; if( GetMainFramePtr() != NULL ) return; MainEmuFrame* mainFrame = new MainEmuFrame( NULL, pxGetAppName() ); m_id_MainFrame = mainFrame->GetId(); DisassemblyDialog* disassembly = new DisassemblyDialog( mainFrame ); m_id_Disassembler = disassembly->GetId(); if (g_Conf->EmuOptions.Debugger.ShowDebuggerOnStart) disassembly->Show(); PostIdleAppMethod( &Pcsx2App::OpenProgramLog ); SetTopWindow( mainFrame ); // not really needed... SetExitOnFrameDelete( false ); // but being explicit doesn't hurt... mainFrame->Show(); }
void MainEmuFrame::Menu_Debug_Open_Click(wxCommandEvent &event) { DisassemblyDialog* dlg = wxGetApp().GetDisassemblyPtr(); if (dlg) dlg->Show(); }