summaryrefslogtreecommitdiff
path: root/src/core/system.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2014-04-08 19:25:03 -0400
committerGravatar bunnei2014-04-08 19:25:03 -0400
commit63e46abdb8764bc97e91bae862c8d461e61b1965 (patch)
treee73f4aa25d7b4015a265e7bbfb6004dab7561027 /src/core/system.cpp
parentfixed some license headers that I missed (diff)
downloadyuzu-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.cpp42
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
12namespace System {
13
14volatile State g_state;
15MetaFileSystem g_ctr_file_system;
16
17void UpdateState(State state) {
18}
19
20void Init(EmuWindow* emu_window) {
21 Core::Init();
22 Memory::Init();
23 HW::Init();
24 CoreTiming::Init();
25 VideoCore::Init(emu_window);
26}
27
28void RunLoopFor(int cycles) {
29 RunLoopUntil(CoreTiming::GetTicks() + cycles);
30}
31
32void RunLoopUntil(u64 global_cycles) {
33}
34
35void Shutdown() {
36 Core::Shutdown();
37 HW::Shutdown();
38 VideoCore::Shutdown();
39 g_ctr_file_system.Shutdown();
40}
41
42} // namespace