Fix VFS initialization

This commit is contained in:
Nekotekina 2019-08-22 02:46:21 +03:00
parent 8cf025bf71
commit c43a126f62

View File

@ -25,6 +25,12 @@ struct vfs_manager
bool vfs::mount(std::string_view vpath, std::string_view path)
{
if (!g_fxo->get<vfs_manager>())
{
// Init (TODO)
g_fxo->init<vfs_manager>();
}
const auto table = g_fxo->get<vfs_manager>();
std::lock_guard lock(table->mutex);