Android: Ensure File::s_android_sys_directory is set only once

This commit is contained in:
Dentomologist 2022-05-31 16:14:59 -07:00
parent 70bf89fa59
commit 4d563ce4d1

View File

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