Settings: Add EmuFolders::IsRunningInPortableMode()

pull/3339/head
Stenzek 11 months ago
parent ff3214b8f7
commit 5401dc8d52
No known key found for this signature in database

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

@ -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

Loading…
Cancel
Save