mirror of https://github.com/PCSX2/pcsx2.git
Cmdline: --nogui, --cdvd, --nodisc, --fullboot, and IsoFile implemented parameters implemented. Example:
pcsx2 someIso.iso (boots game) pcsx2 --nogui someIso.iso (boots game without the pcsx2 std interface) pcsx2 --nogui --nodisc (boots into the bios system menu) ... more coming soon! git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3243 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
c996934a1e
commit
50313e4538
|
@ -236,7 +236,7 @@ void Pcsx2App::OpenProgramLog()
|
|||
|
||||
void Pcsx2App::AllocateCoreStuffs()
|
||||
{
|
||||
if( AppRpc_TryInvokeAsync( &Pcsx2App::OpenMainFrame ) ) return;
|
||||
if( AppRpc_TryInvokeAsync( &Pcsx2App::AllocateCoreStuffs ) ) return;
|
||||
|
||||
CpuCheckSSE2();
|
||||
SysLogMachineCaps();
|
||||
|
@ -523,10 +523,19 @@ bool Pcsx2App::OnInit()
|
|||
// -------------------------------------
|
||||
if( Startup.ForceConsole ) g_Conf->ProgLogBox.Visible = true;
|
||||
OpenProgramLog();
|
||||
|
||||
if( m_UseGUI ) OpenMainFrame();
|
||||
|
||||
AllocateCoreStuffs();
|
||||
|
||||
if( Startup.SysAutoRun )
|
||||
{
|
||||
// Notes: Saving/remembering the Iso file is probably fine and desired, so using
|
||||
// SysUpdateIsoSrcFile is good(ish).
|
||||
// Saving the cdvd plugin override isn't desirable, so we don't assign it into g_Conf.
|
||||
|
||||
g_Conf->EmuOptions.UseBOOT2Injection = !Startup.NoFastBoot;
|
||||
SysUpdateIsoSrcFile( Startup.IsoFile );
|
||||
sApp.SysExecute( Startup.CdvdSource );
|
||||
}
|
||||
}
|
||||
// ----------------------------------------------------------------------------
|
||||
catch( Exception::StartupAborted& ex ) // user-aborted, no popups needed.
|
||||
|
|
|
@ -799,6 +799,12 @@ void Pcsx2App::OnGsFrameClosed( wxWindowID id )
|
|||
|
||||
CoreThread.Suspend();
|
||||
m_id_GsFrame = wxID_ANY;
|
||||
|
||||
if( !m_UseGUI )
|
||||
{
|
||||
// [TODO] : Prompt user before exiting, k thx. :)
|
||||
PrepForExit();
|
||||
}
|
||||
}
|
||||
|
||||
void Pcsx2App::OnProgramLogClosed( wxWindowID id )
|
||||
|
|
|
@ -125,7 +125,7 @@ wxWindowID SwapOrReset_Iso( wxWindow* owner, IScopedCoreThread& core_control, co
|
|||
{
|
||||
wxWindowID result = wxID_CANCEL;
|
||||
|
||||
if( g_Conf->CdvdSource == CDVDsrc_Iso && isoFilename == g_Conf->CurrentIso )
|
||||
if( (g_Conf->CdvdSource == CDVDsrc_Iso) && (isoFilename == g_Conf->CurrentIso) )
|
||||
{
|
||||
core_control.AllowResume();
|
||||
return result;
|
||||
|
|
Loading…
Reference in New Issue