mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-09-11 12:56:14 -05:00
Replace find(x) != npos with contains(x) - Core
This commit is contained in:
@@ -60,7 +60,7 @@ FileDataLoaderHostFS::MakeAbsoluteFromRelative(std::string_view external_relativ
|
||||
#ifdef _WIN32
|
||||
// Riivolution treats a backslash as just a standard filename character, but we can't replicate
|
||||
// this properly on Windows. So if a file contains a backslash, immediately error out.
|
||||
if (external_relative_path.find("\\") != std::string_view::npos)
|
||||
if (external_relative_path.contains("\\"))
|
||||
return std::nullopt;
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user