mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-29 22:20:48 +00:00
Fix VFS initialization
This commit is contained in:
parent
8cf025bf71
commit
c43a126f62
@ -25,6 +25,12 @@ 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)
|
||||||
{
|
{
|
||||||
|
if (!g_fxo->get<vfs_manager>())
|
||||||
|
{
|
||||||
|
// Init (TODO)
|
||||||
|
g_fxo->init<vfs_manager>();
|
||||||
|
}
|
||||||
|
|
||||||
const auto table = g_fxo->get<vfs_manager>();
|
const auto table = g_fxo->get<vfs_manager>();
|
||||||
|
|
||||||
std::lock_guard lock(table->mutex);
|
std::lock_guard lock(table->mutex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user