diff options
author | LittleWhite <lw.demoscene@googlemail.com> | 2016-01-07 20:33:54 +0100 |
---|---|---|
committer | LittleWhite <lw.demoscene@googlemail.com> | 2016-03-08 22:05:25 +0100 |
commit | 4be68dddfbdc7065139351e6e39b5fa97844264a (patch) | |
tree | 4b020326a58a7a4364b752cb731233cb6c264cd0 /src/core/system.cpp | |
parent | Display errors in GUI when loading ROM failed (diff) | |
download | yuzu-4be68dddfbdc7065139351e6e39b5fa97844264a.tar yuzu-4be68dddfbdc7065139351e6e39b5fa97844264a.tar.gz yuzu-4be68dddfbdc7065139351e6e39b5fa97844264a.tar.bz2 yuzu-4be68dddfbdc7065139351e6e39b5fa97844264a.tar.lz yuzu-4be68dddfbdc7065139351e6e39b5fa97844264a.tar.xz yuzu-4be68dddfbdc7065139351e6e39b5fa97844264a.tar.zst yuzu-4be68dddfbdc7065139351e6e39b5fa97844264a.zip |
Diffstat (limited to 'src/core/system.cpp')
-rw-r--r-- | src/core/system.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/system.cpp b/src/core/system.cpp index b62ebf69e..1e3b2783c 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -17,14 +17,16 @@ namespace System { -void Init(EmuWindow* emu_window) { +Result Init(EmuWindow* emu_window) { Core::Init(); CoreTiming::Init(); Memory::Init(); HW::Init(); Kernel::Init(); HLE::Init(); - VideoCore::Init(emu_window); + if (!VideoCore::Init(emu_window)) { + return Result::ErrorInitVideoCore; + } AudioCore::Init(); GDBStub::Init(); } |