diff options
Diffstat (limited to 'src/yuzu_tester/yuzu.cpp')
| -rw-r--r-- | src/yuzu_tester/yuzu.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/yuzu_tester/yuzu.cpp b/src/yuzu_tester/yuzu.cpp index 88e4bd1f7..50bd7ae41 100644 --- a/src/yuzu_tester/yuzu.cpp +++ b/src/yuzu_tester/yuzu.cpp | |||
| @@ -160,10 +160,12 @@ int main(int argc, char** argv) { | |||
| 160 | return -1; | 160 | return -1; |
| 161 | } | 161 | } |
| 162 | 162 | ||
| 163 | Core::System& system{Core::System::GetInstance()}; | ||
| 164 | |||
| 163 | Settings::values.use_gdbstub = false; | 165 | Settings::values.use_gdbstub = false; |
| 164 | Settings::Apply(); | 166 | Settings::Apply(system); |
| 165 | 167 | ||
| 166 | std::unique_ptr<EmuWindow_SDL2_Hide> emu_window{std::make_unique<EmuWindow_SDL2_Hide>()}; | 168 | const auto emu_window{std::make_unique<EmuWindow_SDL2_Hide>()}; |
| 167 | 169 | ||
| 168 | bool finished = false; | 170 | bool finished = false; |
| 169 | int return_value = 0; | 171 | int return_value = 0; |
| @@ -212,7 +214,6 @@ int main(int argc, char** argv) { | |||
| 212 | return_value = -1; | 214 | return_value = -1; |
| 213 | }; | 215 | }; |
| 214 | 216 | ||
| 215 | Core::System& system{Core::System::GetInstance()}; | ||
| 216 | system.SetContentProvider(std::make_unique<FileSys::ContentProviderUnion>()); | 217 | system.SetContentProvider(std::make_unique<FileSys::ContentProviderUnion>()); |
| 217 | system.SetFilesystem(std::make_shared<FileSys::RealVfsFilesystem>()); | 218 | system.SetFilesystem(std::make_shared<FileSys::RealVfsFilesystem>()); |
| 218 | system.GetFileSystemController().CreateFactories(*system.GetFilesystem()); | 219 | system.GetFileSystemController().CreateFactories(*system.GetFilesystem()); |
| @@ -247,9 +248,10 @@ int main(int argc, char** argv) { | |||
| 247 | "additional help.\n\nError Code: {:04X}-{:04X}\nError Description: {}", | 248 | "additional help.\n\nError Code: {:04X}-{:04X}\nError Description: {}", |
| 248 | loader_id, error_id, static_cast<Loader::ResultStatus>(error_id)); | 249 | loader_id, error_id, static_cast<Loader::ResultStatus>(error_id)); |
| 249 | } | 250 | } |
| 251 | break; | ||
| 250 | } | 252 | } |
| 251 | 253 | ||
| 252 | Service::Yuzu::InstallInterfaces(system.ServiceManager(), datastring, callback); | 254 | Service::Yuzu::InstallInterfaces(system, datastring, callback); |
| 253 | 255 | ||
| 254 | system.TelemetrySession().AddField(Common::Telemetry::FieldType::App, "Frontend", | 256 | system.TelemetrySession().AddField(Common::Telemetry::FieldType::App, "Frontend", |
| 255 | "SDLHideTester"); | 257 | "SDLHideTester"); |