mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-04 02:45:12 +00:00
Use g_fxo for vfs_manager
This commit is contained in:
parent
93d5c0a38e
commit
4ac1e2d8f5
@ -25,7 +25,7 @@ struct vfs_manager
|
|||||||
|
|
||||||
bool vfs::mount(std::string_view vpath, std::string_view path)
|
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);
|
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)
|
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);
|
reader_lock lock(table->mutex);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user