diff options
Diffstat (limited to 'src/yuzu_cmd/yuzu.cpp')
| -rw-r--r-- | src/yuzu_cmd/yuzu.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp index 806127b12..245f25847 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp | |||
| @@ -28,6 +28,7 @@ | |||
| 28 | #include "core/loader/loader.h" | 28 | #include "core/loader/loader.h" |
| 29 | #include "core/settings.h" | 29 | #include "core/settings.h" |
| 30 | #include "core/telemetry_session.h" | 30 | #include "core/telemetry_session.h" |
| 31 | #include "video_core/renderer_base.h" | ||
| 31 | #include "yuzu_cmd/config.h" | 32 | #include "yuzu_cmd/config.h" |
| 32 | #include "yuzu_cmd/emu_window/emu_window_sdl2.h" | 33 | #include "yuzu_cmd/emu_window/emu_window_sdl2.h" |
| 33 | 34 | ||
| @@ -113,9 +114,9 @@ int main(int argc, char** argv) { | |||
| 113 | }; | 114 | }; |
| 114 | 115 | ||
| 115 | while (optind < argc) { | 116 | while (optind < argc) { |
| 116 | char arg = getopt_long(argc, argv, "g:fhvp::", long_options, &option_index); | 117 | int arg = getopt_long(argc, argv, "g:fhvp::", long_options, &option_index); |
| 117 | if (arg != -1) { | 118 | if (arg != -1) { |
| 118 | switch (arg) { | 119 | switch (static_cast<char>(arg)) { |
| 119 | case 'g': | 120 | case 'g': |
| 120 | errno = 0; | 121 | errno = 0; |
| 121 | gdb_port = strtoul(optarg, &endarg, 0); | 122 | gdb_port = strtoul(optarg, &endarg, 0); |
| @@ -215,7 +216,9 @@ int main(int argc, char** argv) { | |||
| 215 | } | 216 | } |
| 216 | } | 217 | } |
| 217 | 218 | ||
| 218 | Core::Telemetry().AddField(Telemetry::FieldType::App, "Frontend", "SDL"); | 219 | system.TelemetrySession().AddField(Telemetry::FieldType::App, "Frontend", "SDL"); |
| 220 | |||
| 221 | system.Renderer().Rasterizer().LoadDiskResources(); | ||
| 219 | 222 | ||
| 220 | while (emu_window->IsOpen()) { | 223 | while (emu_window->IsOpen()) { |
| 221 | system.RunLoop(); | 224 | system.RunLoop(); |