VERY experimental Nintendo Switch 2 emulator
C++
filesystem: Use std::string's empty() function instead of comparing against a literal
Lioncash7ab5eb948c8f
diff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cppindex 6d5ef2de47..a6b8386a75 100644--- a/src/core/hle/service/filesystem/filesystem.cpp+++ b/src/core/hle/service/filesystem/filesystem.cpp@@ -23,7 +23,7 @@ constexpr u64 EMULATED_SD_REPORTED_SIZE = 32000000000;static FileSys::VirtualDir GetDirectoryRelativeWrapped(FileSys::VirtualDir base,const std::string& dir_name) {- if (dir_name == "." || dir_name == "" || dir_name == "/" || dir_name == "\\")+ if (dir_name.empty() || dir_name == "." || dir_name == "/" || dir_name == "\\")return base;return base->GetDirectoryRelative(dir_name);