summaryrefslogtreecommitdiffstats
path: root/src/yuzu_tester
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2020-11-27 23:29:59 +0100
committerGitHub <noreply@github.com>2020-11-27 23:29:59 +0100
commit1dbe39f7a25357b40541ca536698cb09bb7df4ff (patch)
tree285ffb3801aa773cb3537f77153a9e432390f6b8 /src/yuzu_tester
parentMerge pull request #5023 from lioncash/save-global (diff)
parentcore: Eliminate remaining usages of the global system instance (diff)
downloadyuzu-1dbe39f7a25357b40541ca536698cb09bb7df4ff.tar
yuzu-1dbe39f7a25357b40541ca536698cb09bb7df4ff.tar.gz
yuzu-1dbe39f7a25357b40541ca536698cb09bb7df4ff.tar.bz2
yuzu-1dbe39f7a25357b40541ca536698cb09bb7df4ff.tar.lz
yuzu-1dbe39f7a25357b40541ca536698cb09bb7df4ff.tar.xz
yuzu-1dbe39f7a25357b40541ca536698cb09bb7df4ff.tar.zst
yuzu-1dbe39f7a25357b40541ca536698cb09bb7df4ff.zip
Diffstat (limited to 'src/yuzu_tester')
-rw-r--r--src/yuzu_tester/yuzu.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/yuzu_tester/yuzu.cpp b/src/yuzu_tester/yuzu.cpp
index ea94a6537..50bd7ae41 100644
--- a/src/yuzu_tester/yuzu.cpp
+++ b/src/yuzu_tester/yuzu.cpp
@@ -160,10 +160,12 @@ int main(int argc, char** argv) {
return -1;
}
+ Core::System& system{Core::System::GetInstance()};
+
Settings::values.use_gdbstub = false;
- Settings::Apply();
+ Settings::Apply(system);
- std::unique_ptr<EmuWindow_SDL2_Hide> emu_window{std::make_unique<EmuWindow_SDL2_Hide>()};
+ 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());