mirror of https://github.com/PCSX2/pcsx2.git
Merge pull request #1696 from FlatOutPS2/master
psxmode: Correct exe name for several PSX titles
This commit is contained in:
commit
29d229264d
|
@ -406,7 +406,7 @@ void cdvdReloadElfInfo(wxString elfoverride)
|
||||||
// PCSX2 currently only recognizes *.elf executables in proper PS2 format.
|
// PCSX2 currently only recognizes *.elf executables in proper PS2 format.
|
||||||
// To support different PSX titles in the console title and for savestates, this code bypasses all the detection,
|
// To support different PSX titles in the console title and for savestates, this code bypasses all the detection,
|
||||||
// simply using the exe name, stripped of problematic characters.
|
// simply using the exe name, stripped of problematic characters.
|
||||||
wxString fname = elfpath.AfterLast('\\');
|
wxString fname = elfpath.AfterLast('\\').AfterLast(':'); // Also catch elf paths which lack a backslash, and only have a colon.
|
||||||
wxString fname2 = fname.BeforeFirst(';');
|
wxString fname2 = fname.BeforeFirst(';');
|
||||||
DiscSerial = fname2;
|
DiscSerial = fname2;
|
||||||
Console.SetTitle(DiscSerial);
|
Console.SetTitle(DiscSerial);
|
||||||
|
|
Loading…
Reference in New Issue