Remove some fxo->need calls

This commit is contained in:
Eladash 2023-12-17 17:03:14 +02:00 committed by Elad Ashkenazi
parent 14c92efd38
commit edf74313ef
2 changed files with 4 additions and 4 deletions

View file

@ -144,8 +144,10 @@ bool vfs::unmount(std::string_view vpath)
vfs_log.notice("About to unmount '%s'", vpath);
// Workaround
g_fxo->need<vfs_manager>();
if (!g_fxo->is_init<vfs_manager>())
{
return false;
}
auto& table = g_fxo->get<vfs_manager>();