mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Android: Ensure File::s_android_sys_directory is set only once
This commit is contained in:
parent
70bf89fa59
commit
4d563ce4d1
@ -921,6 +921,8 @@ std::string GetSysDirectory()
|
|||||||
void SetSysDirectory(const std::string& path)
|
void SetSysDirectory(const std::string& path)
|
||||||
{
|
{
|
||||||
INFO_LOG_FMT(COMMON, "Setting Sys directory to {}", path);
|
INFO_LOG_FMT(COMMON, "Setting Sys directory to {}", path);
|
||||||
|
ASSERT_MSG(COMMON, s_android_sys_directory.empty(), "Sys directory already set to {}",
|
||||||
|
s_android_sys_directory);
|
||||||
s_android_sys_directory = path;
|
s_android_sys_directory = path;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user