mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-20 09:19:48 +00:00
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.
This commit is contained in:
parent
e6ed939952
commit
ec8b8bdb8d
1 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,8 @@ HostFileSystem::HostFilename HostFileSystem::BuildFilename(const std::string& wi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ASSERT(!m_root_path.empty());
|
||||||
|
|
||||||
if (wii_path.starts_with("/"))
|
if (wii_path.starts_with("/"))
|
||||||
return HostFilename{m_root_path + Common::EscapePath(wii_path), false};
|
return HostFilename{m_root_path + Common::EscapePath(wii_path), false};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue