mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-12 22:27:56 -05:00
core: Eliminate remaining usages of the global system instance
Removes all remaining usages of the global system instance. After this, migration can begin to migrate to being constructed and managed entirely by the various frontends.
This commit is contained in:
@ -160,10 +160,12 @@ int main(int argc, char** argv) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
Settings::values.use_gdbstub = false;
|
||||
Settings::Apply();
|
||||
Core::System& system{Core::System::GetInstance()};
|
||||
|
||||
std::unique_ptr<EmuWindow_SDL2_Hide> emu_window{std::make_unique<EmuWindow_SDL2_Hide>()};
|
||||
Settings::values.use_gdbstub = false;
|
||||
Settings::Apply(system);
|
||||
|
||||
const auto emu_window{std::make_unique<EmuWindow_SDL2_Hide>()};
|
||||
|
||||
bool finished = false;
|
||||
int return_value = 0;
|
||||
@ -212,7 +214,6 @@ int main(int argc, char** argv) {
|
||||
return_value = -1;
|
||||
};
|
||||
|
||||
Core::System& system{Core::System::GetInstance()};
|
||||
system.SetContentProvider(std::make_unique<FileSys::ContentProviderUnion>());
|
||||
system.SetFilesystem(std::make_shared<FileSys::RealVfsFilesystem>());
|
||||
system.GetFileSystemController().CreateFactories(*system.GetFilesystem());
|
||||
|
Reference in New Issue
Block a user