diff options
| author | 2016-12-22 11:47:44 -0500 | |
|---|---|---|
| committer | 2016-12-22 11:47:44 -0500 | |
| commit | aa47af7fb6efd0bda54cca2373ed978e538f6d61 (patch) | |
| tree | 93d96872603f64925cd632f27bb5c7046cadeedf /src/core/system.cpp | |
| parent | Merge pull request #2285 from mailwl/csnd-format (diff) | |
| parent | ThreadContext: Move from "core" to "arm_interface". (diff) | |
| download | yuzu-aa47af7fb6efd0bda54cca2373ed978e538f6d61.tar.gz yuzu-aa47af7fb6efd0bda54cca2373ed978e538f6d61.tar.xz yuzu-aa47af7fb6efd0bda54cca2373ed978e538f6d61.zip | |
Merge pull request #2343 from bunnei/core-cleanup
Core: Top-level consolidate & misc cleanup
Diffstat (limited to 'src/core/system.cpp')
| -rw-r--r-- | src/core/system.cpp | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/core/system.cpp b/src/core/system.cpp deleted file mode 100644 index a5f763805..000000000 --- a/src/core/system.cpp +++ /dev/null | |||
| @@ -1,55 +0,0 @@ | |||
| 1 | // Copyright 2014 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #include "audio_core/audio_core.h" | ||
| 6 | #include "core/core.h" | ||
| 7 | #include "core/core_timing.h" | ||
| 8 | #include "core/gdbstub/gdbstub.h" | ||
| 9 | #include "core/hle/hle.h" | ||
| 10 | #include "core/hle/kernel/kernel.h" | ||
| 11 | #include "core/hle/kernel/memory.h" | ||
| 12 | #include "core/hw/hw.h" | ||
| 13 | #include "core/system.h" | ||
| 14 | #include "video_core/video_core.h" | ||
| 15 | |||
| 16 | namespace System { | ||
| 17 | |||
| 18 | static bool is_powered_on{false}; | ||
| 19 | |||
| 20 | Result Init(EmuWindow* emu_window, u32 system_mode) { | ||
| 21 | Core::Init(); | ||
| 22 | CoreTiming::Init(); | ||
| 23 | Memory::Init(); | ||
| 24 | HW::Init(); | ||
| 25 | Kernel::Init(system_mode); | ||
| 26 | HLE::Init(); | ||
| 27 | if (!VideoCore::Init(emu_window)) { | ||
| 28 | return Result::ErrorInitVideoCore; | ||
| 29 | } | ||
| 30 | AudioCore::Init(); | ||
| 31 | GDBStub::Init(); | ||
| 32 | |||
| 33 | is_powered_on = true; | ||
| 34 | |||
| 35 | return Result::Success; | ||
| 36 | } | ||
| 37 | |||
| 38 | bool IsPoweredOn() { | ||
| 39 | return is_powered_on; | ||
| 40 | } | ||
| 41 | |||
| 42 | void Shutdown() { | ||
| 43 | GDBStub::Shutdown(); | ||
| 44 | AudioCore::Shutdown(); | ||
| 45 | VideoCore::Shutdown(); | ||
| 46 | HLE::Shutdown(); | ||
| 47 | Kernel::Shutdown(); | ||
| 48 | HW::Shutdown(); | ||
| 49 | CoreTiming::Shutdown(); | ||
| 50 | Core::Shutdown(); | ||
| 51 | |||
| 52 | is_powered_on = false; | ||
| 53 | } | ||
| 54 | |||
| 55 | } // namespace | ||