aboutsummaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorJames Rowe <jroweboy@gmail.com>2020-03-24 22:57:36 -0600
committerJames Rowe <jroweboy@gmail.com>2020-03-25 23:32:42 -0600
commitc935a1a47547b45fb361c2faa16a87a12f893714 (patch)
tree30cbea0216626e3a1db1a68120b54e6bd53804f5 /src/core/core.cpp
parentb37d69e5e1033d7de7c8a2c3cbcfe55144c17de2 (diff)
Address review and fix broken yuzu-tester build
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 6cc4a08121..26a580cb73 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -169,6 +169,9 @@ struct System::Impl {
interrupt_manager = std::make_unique<Core::Hardware::InterruptManager>(system);
gpu_core = VideoCore::CreateGPU(emu_window, system);
+ if (!gpu_core) {
+ return ResultStatus::ErrorVideoCore;
+ }
gpu_core->Renderer().Rasterizer().SetupDirtyFlags();
is_powered_on = true;
@@ -181,7 +184,6 @@ struct System::Impl {
ResultStatus Load(System& system, Frontend::EmuWindow& emu_window,
const std::string& filepath) {
-
app_loader = Loader::GetLoader(GetGameFileFromPath(virtual_filesystem, filepath));
if (!app_loader) {
LOG_CRITICAL(Core, "Failed to obtain loader for {}!", filepath);