Settings: Add EmuFolders::IsRunningInPortableMode()

This commit is contained in:
Stenzek 2024-11-29 17:06:40 +10:00
parent ff3214b8f7
commit 5401dc8d52
No known key found for this signature in database
2 changed files with 8 additions and 0 deletions

View File

@ -2335,3 +2335,8 @@ std::string EmuFolders::GetOverridableResourcePath(std::string_view name)
return upath;
}
bool EmuFolders::IsRunningInPortableMode()
{
return (AppRoot == DataRoot);
}

View File

@ -593,4 +593,7 @@ void Update();
/// Returns the path to a resource file, allowing the user to override it.
std::string GetOverridableResourcePath(std::string_view name);
/// Returns true if the application is running in portable mode.
bool IsRunningInPortableMode();
} // namespace EmuFolders