Merge pull request #13859 from Tilka/root_path_assert

IOS/FS: add safety assert
This commit is contained in:
Tilka 2025-08-10 05:29:05 +01:00 committed by GitHub
commit 4fc3106761
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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