Merge pull request #1696 from FlatOutPS2/master

psxmode: Correct exe name for several PSX titles
This commit is contained in:
ramapcsx2 2016-12-13 23:54:58 +01:00 committed by GitHub
commit 29d229264d
1 changed files with 1 additions and 1 deletions

View File

@ -406,7 +406,7 @@ void cdvdReloadElfInfo(wxString elfoverride)
// 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,
// 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(';');
DiscSerial = fname2;
Console.SetTitle(DiscSerial);