diff options
| author | Dentomologist <dentomologist@gmail.com> | 2022-05-31 16:14:59 -0700 |
|---|---|---|
| committer | Dentomologist <dentomologist@gmail.com> | 2022-05-31 16:18:08 -0700 |
| commit | 4d563ce4d15d4cf67e00549d320f5350f7494e93 (patch) | |
| tree | 0cbb60d587bf440030d586b54d57f28ebb6e190f /Source | |
| parent | 70bf89fa59e3bd48633677374ca26124d36ff7e5 (diff) | |
Android: Ensure File::s_android_sys_directory is set only once
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/Common/FileUtil.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/Common/FileUtil.cpp b/Source/Core/Common/FileUtil.cpp index a218f6cb8e..8e42e0f42e 100644 --- a/Source/Core/Common/FileUtil.cpp +++ b/Source/Core/Common/FileUtil.cpp @@ -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 |
