diff options
| author | 2014-04-08 19:25:03 -0400 | |
|---|---|---|
| committer | 2014-04-08 19:25:03 -0400 | |
| commit | 63e46abdb8764bc97e91bae862c8d461e61b1965 (patch) | |
| tree | e73f4aa25d7b4015a265e7bbfb6004dab7561027 /src/core/system.cpp | |
| parent | fixed some license headers that I missed (diff) | |
| download | yuzu-63e46abdb8764bc97e91bae862c8d461e61b1965.tar.gz yuzu-63e46abdb8764bc97e91bae862c8d461e61b1965.tar.xz yuzu-63e46abdb8764bc97e91bae862c8d461e61b1965.zip | |
got rid of 'src' folders in each sub-project
Diffstat (limited to 'src/core/system.cpp')
| -rw-r--r-- | src/core/system.cpp | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/core/system.cpp b/src/core/system.cpp new file mode 100644 index 000000000..1fc272d70 --- /dev/null +++ b/src/core/system.cpp | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | // Copyright 2014 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #include "core.h" | ||
| 6 | #include "hw/hw.h" | ||
| 7 | #include "core_timing.h" | ||
| 8 | #include "mem_map.h" | ||
| 9 | #include "system.h" | ||
| 10 | #include "video_core.h" | ||
| 11 | |||
| 12 | namespace System { | ||
| 13 | |||
| 14 | volatile State g_state; | ||
| 15 | MetaFileSystem g_ctr_file_system; | ||
| 16 | |||
| 17 | void UpdateState(State state) { | ||
| 18 | } | ||
| 19 | |||
| 20 | void Init(EmuWindow* emu_window) { | ||
| 21 | Core::Init(); | ||
| 22 | Memory::Init(); | ||
| 23 | HW::Init(); | ||
| 24 | CoreTiming::Init(); | ||
| 25 | VideoCore::Init(emu_window); | ||
| 26 | } | ||
| 27 | |||
| 28 | void RunLoopFor(int cycles) { | ||
| 29 | RunLoopUntil(CoreTiming::GetTicks() + cycles); | ||
| 30 | } | ||
| 31 | |||
| 32 | void RunLoopUntil(u64 global_cycles) { | ||
| 33 | } | ||
| 34 | |||
| 35 | void Shutdown() { | ||
| 36 | Core::Shutdown(); | ||
| 37 | HW::Shutdown(); | ||
| 38 | VideoCore::Shutdown(); | ||
| 39 | g_ctr_file_system.Shutdown(); | ||
| 40 | } | ||
| 41 | |||
| 42 | } // namespace | ||