diff options
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/core.cpp | 4 | ||||
| -rw-r--r-- | src/core/frontend/emu_window.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 6cc4a0812..26a580cb7 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -169,6 +169,9 @@ struct System::Impl { | |||
| 169 | 169 | ||
| 170 | interrupt_manager = std::make_unique<Core::Hardware::InterruptManager>(system); | 170 | interrupt_manager = std::make_unique<Core::Hardware::InterruptManager>(system); |
| 171 | gpu_core = VideoCore::CreateGPU(emu_window, system); | 171 | gpu_core = VideoCore::CreateGPU(emu_window, system); |
| 172 | if (!gpu_core) { | ||
| 173 | return ResultStatus::ErrorVideoCore; | ||
| 174 | } | ||
| 172 | gpu_core->Renderer().Rasterizer().SetupDirtyFlags(); | 175 | gpu_core->Renderer().Rasterizer().SetupDirtyFlags(); |
| 173 | 176 | ||
| 174 | is_powered_on = true; | 177 | is_powered_on = true; |
| @@ -181,7 +184,6 @@ struct System::Impl { | |||
| 181 | 184 | ||
| 182 | ResultStatus Load(System& system, Frontend::EmuWindow& emu_window, | 185 | ResultStatus Load(System& system, Frontend::EmuWindow& emu_window, |
| 183 | const std::string& filepath) { | 186 | const std::string& filepath) { |
| 184 | |||
| 185 | app_loader = Loader::GetLoader(GetGameFileFromPath(virtual_filesystem, filepath)); | 187 | app_loader = Loader::GetLoader(GetGameFileFromPath(virtual_filesystem, filepath)); |
| 186 | if (!app_loader) { | 188 | if (!app_loader) { |
| 187 | LOG_CRITICAL(Core, "Failed to obtain loader for {}!", filepath); | 189 | LOG_CRITICAL(Core, "Failed to obtain loader for {}!", filepath); |
diff --git a/src/core/frontend/emu_window.h b/src/core/frontend/emu_window.h index bb283d844..72294d4d8 100644 --- a/src/core/frontend/emu_window.h +++ b/src/core/frontend/emu_window.h | |||
| @@ -30,7 +30,7 @@ public: | |||
| 30 | 30 | ||
| 31 | class Scoped { | 31 | class Scoped { |
| 32 | public: | 32 | public: |
| 33 | Scoped(GraphicsContext& context_) : context(context_) { | 33 | explicit Scoped(GraphicsContext& context_) : context(context_) { |
| 34 | context.MakeCurrent(); | 34 | context.MakeCurrent(); |
| 35 | } | 35 | } |
| 36 | ~Scoped() { | 36 | ~Scoped() { |