mirror of
https://github.com/AxioDL/nod.git
synced 2025-12-14 15:46:30 +00:00
Use correct slash finding function
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user