Use correct slash finding function

This commit is contained in:
Jack Andersen
2019-11-23 20:25:29 -10:00
parent c1a1d1abc8
commit 19604b2a3b
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ std::unique_ptr<DiscBase> OpenDiscFromImage(SystemStringView path, bool& isWii)
using SignedSize = std::make_signed<SystemString::size_type>::type;
const auto dotPos = SignedSize(path.rfind('.'));
const auto slashPos = SignedSize(path.rfind("/\\"));
const auto slashPos = SignedSize(path.find_last_of("/\\"));
if (magic == nod::SBig((uint32_t)'WBFS')) {
discIO = NewDiscIOWBFS(path);
isWii = true;