mirror of https://github.com/PCSX2/pcsx2.git
Minor fixes to iso and cdvd source changing.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2947 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
dfb301c1ba
commit
34b118738f
|
@ -71,6 +71,7 @@ protected:
|
|||
FnPtr_CoreThreadMethod m_method;
|
||||
|
||||
public:
|
||||
wxString GetEventName() const { return L"CoreThreadMethod"; }
|
||||
virtual ~SysExecEvent_InvokeCoreThreadMethod() throw() {}
|
||||
SysExecEvent_InvokeCoreThreadMethod* Clone() const { return new SysExecEvent_InvokeCoreThreadMethod(*this); }
|
||||
|
||||
|
|
|
@ -169,7 +169,6 @@ wxWindowID SwapOrReset_Iso( wxWindow* owner, IScopedCoreThread& core_control, co
|
|||
{
|
||||
Console.Indent().WriteLn( "HotSwapping to new ISO src image!" );
|
||||
g_Conf->CdvdSource = CDVDsrc_Iso;
|
||||
sMainFrame.UpdateIsoSrcSelection();
|
||||
CoreThread.ChangeCdvdSource();
|
||||
core_control.AllowResume();
|
||||
}
|
||||
|
@ -205,6 +204,7 @@ wxWindowID SwapOrReset_CdvdSrc( wxWindow* owner, CDVD_SourceType newsrc )
|
|||
if( result == wxID_CANCEL )
|
||||
{
|
||||
core.AllowResume();
|
||||
sMainFrame.UpdateIsoSrcSelection();
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
@ -216,6 +216,7 @@ wxWindowID SwapOrReset_CdvdSrc( wxWindow* owner, CDVD_SourceType newsrc )
|
|||
{
|
||||
Console.Indent().WriteLn( L"(CdvdSource) HotSwapping CDVD source types from %s to %s.", CDVD_SourceLabels[oldsrc], CDVD_SourceLabels[newsrc] );
|
||||
CoreThread.ChangeCdvdSource();
|
||||
sMainFrame.UpdateIsoSrcSelection();
|
||||
core.AllowResume();
|
||||
}
|
||||
else
|
||||
|
@ -348,7 +349,7 @@ void MainEmuFrame::Menu_BootCdvd2_Click( wxCommandEvent &event )
|
|||
_DoBootCdvd();
|
||||
}
|
||||
|
||||
static wxString GetMsg_IsoImageChanged()
|
||||
wxString GetMsg_IsoImageChanged()
|
||||
{
|
||||
return _("You have selected the following ISO image into PCSX2:\n\n");
|
||||
}
|
||||
|
@ -365,6 +366,7 @@ void MainEmuFrame::Menu_IsoBrowse_Click( wxCommandEvent &event )
|
|||
}
|
||||
|
||||
SwapOrReset_Iso(this, core, isofile, GetMsg_IsoImageChanged());
|
||||
AppSaveSettings(); // save the new iso selection; update menus!
|
||||
}
|
||||
|
||||
void MainEmuFrame::Menu_MultitapToggle_Click( wxCommandEvent& )
|
||||
|
|
|
@ -15,8 +15,11 @@
|
|||
|
||||
#include "PrecompiledHeader.h"
|
||||
#include "MainFrame.h"
|
||||
#include "IsoDropTarget.h"
|
||||
#include "IniInterface.h"
|
||||
|
||||
extern wxString GetMsg_IsoImageChanged();
|
||||
|
||||
// FIXME : This needs to handle removed/missing ISOs somehow, although I'm not sure the
|
||||
// best approach. I think I'd prefer for missing entries to only be removed when they
|
||||
// are selected. This also means we'll need to add some sort of "no current selection"
|
||||
|
@ -57,8 +60,9 @@ void RecentIsoManager::OnChangedSelection( wxCommandEvent& evt )
|
|||
|
||||
// TODO: Dialog asking for hotswap or reset!!!!
|
||||
|
||||
ScopedCoreThreadClose stopped_core;
|
||||
SysUpdateIsoSrcFile( m_Items[i].Filename );
|
||||
ScopedCoreThreadPopup stopped_core;
|
||||
//SysUpdateIsoSrcFile( m_Items[i].Filename );
|
||||
SwapOrReset_Iso( m_Menu->GetWindow(), stopped_core, m_Items[i].Filename, GetMsg_IsoImageChanged());
|
||||
stopped_core.AllowResume();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue