iop: Fix booting ELF files on a different drive

Fixes a regression introduced in b3b1f3ac68,
where ELF files on a different drive to PCSX2 would fail to load.
This commit is contained in:
Jonathan Li 2017-12-25 00:55:59 +00:00
parent 854246846d
commit e0ec8b3be1
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ public:
static int open(IOManFile **file, const std::string &full_path, s32 flags, u16 mode)
{
const std::string path = full_path.substr(full_path.rfind(':') + 1);
const std::string path = full_path.substr(full_path.find(':') + 1);
// host: actually DOES let you write!
//if (flags != IOP_O_RDONLY)