Turn the VFS into a class, to be able to reuse it for other purposes.
This commit is contained in:
parent
ebd8a63914
commit
3b39e9e068
29 changed files with 106 additions and 95 deletions
|
@ -1284,7 +1284,7 @@ void retro_init(void)
|
|||
g_Config.bEnableNetworkChat = false;
|
||||
g_Config.bDiscordPresence = false;
|
||||
|
||||
VFSRegister("", new DirectoryAssetReader(retro_base_dir));
|
||||
g_VFS.Register("", new DirectoryAssetReader(retro_base_dir));
|
||||
|
||||
host = new LibretroHost();
|
||||
}
|
||||
|
@ -1486,7 +1486,7 @@ void retro_unload_game(void)
|
|||
Libretro::EmuThreadStop();
|
||||
|
||||
PSP_Shutdown();
|
||||
VFSShutdown();
|
||||
g_VFS.Clear();
|
||||
|
||||
delete ctx;
|
||||
ctx = nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue