summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2025-08-10 04:55:13 +0100
committerTillmann Karras <tilkax@gmail.com>2025-08-10 04:58:57 +0100
commitec8b8bdb8d1d454e69836fcb62376536a3d49809 (patch)
tree6d70f6383cc2ff5cdcbc11a9e50c25bf9fb946d3 /Source/Core
parente6ed939952f108aeaedc2763b391f2471203305e (diff)
IOS/FS: add safety assert
This is to prevent someone (me) from accidentally deleting their entire /tmp directory just by not initializing the config system correctly.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/IOS/FS/HostBackend/FS.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/Core/IOS/FS/HostBackend/FS.cpp b/Source/Core/Core/IOS/FS/HostBackend/FS.cpp
index 96ce91b275..56fb44859c 100644
--- a/Source/Core/Core/IOS/FS/HostBackend/FS.cpp
+++ b/Source/Core/Core/IOS/FS/HostBackend/FS.cpp
@@ -43,6 +43,8 @@ HostFileSystem::HostFilename HostFileSystem::BuildFilename(const std::string& wi
}
}
+ ASSERT(!m_root_path.empty());
+
if (wii_path.starts_with("/"))
return HostFilename{m_root_path + Common::EscapePath(wii_path), false};