mirror of https://github.com/PCSX2/pcsx2.git
PCSX2: Add ability to combine CLI options --elf or --irx with --gameargs
Exception: if full path to host: contains spaces, then arguments will be ignored. To avoid this you can use relative paths when possible.
This commit is contained in:
parent
c81c89d6d9
commit
1984c68516
|
@ -463,6 +463,8 @@ bool Pcsx2App::OnInit()
|
|||
{
|
||||
g_Conf->Folders.RunELF = elfFile.GetPath();
|
||||
sApp.SysExecute(Startup.CdvdSource, Startup.ElfFile);
|
||||
if (Startup.ElfFile.Find(' ') == NULL)
|
||||
EmuConfig.CurrentGameArgs = StringUtil::wxStringToUTF8String(Startup.GameLaunchArgs);
|
||||
}
|
||||
}
|
||||
else if (Startup.SysAutoRunIrx)
|
||||
|
@ -473,6 +475,8 @@ bool Pcsx2App::OnInit()
|
|||
|
||||
// FIXME: ElfFile is an irx it will crash
|
||||
sApp.SysExecute(Startup.CdvdSource, Startup.ElfFile);
|
||||
if (Startup.ElfFile.Find(' ') == NULL)
|
||||
EmuConfig.CurrentGameArgs = StringUtil::wxStringToUTF8String(Startup.GameLaunchArgs);
|
||||
}
|
||||
}
|
||||
// ----------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue