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)
|
||||
{
|
||||
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;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue