Use g_fxo for vfs_manager

This commit is contained in:
Nekotekina 2019-08-21 22:43:54 +03:00
parent 93d5c0a38e
commit 4ac1e2d8f5

View File

@ -25,7 +25,7 @@ struct vfs_manager
bool vfs::mount(std::string_view vpath, std::string_view path)
{
const auto table = fxm::get_always<vfs_manager>();
const auto table = g_fxo->get<vfs_manager>();
std::lock_guard lock(table->mutex);
@ -98,7 +98,7 @@ bool vfs::mount(std::string_view vpath, std::string_view path)
std::string vfs::get(std::string_view vpath, std::vector<std::string>* out_dir)
{
const auto table = fxm::get_always<vfs_manager>();
const auto table = g_fxo->get<vfs_manager>();
reader_lock lock(table->mutex);