From 63e46abdb8764bc97e91bae862c8d461e61b1965 Mon Sep 17 00:00:00 2001 From: bunnei Date: Tue, 8 Apr 2014 19:25:03 -0400 Subject: got rid of 'src' folders in each sub-project --- src/core/system.cpp | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 src/core/system.cpp (limited to 'src/core/system.cpp') diff --git a/src/core/system.cpp b/src/core/system.cpp new file mode 100644 index 00000000..1fc272d7 --- /dev/null +++ b/src/core/system.cpp @@ -0,0 +1,42 @@ +// Copyright 2014 Citra Emulator Project +// Licensed under GPLv2 +// Refer to the license.txt file included. + +#include "core.h" +#include "hw/hw.h" +#include "core_timing.h" +#include "mem_map.h" +#include "system.h" +#include "video_core.h" + +namespace System { + +volatile State g_state; +MetaFileSystem g_ctr_file_system; + +void UpdateState(State state) { +} + +void Init(EmuWindow* emu_window) { + Core::Init(); + Memory::Init(); + HW::Init(); + CoreTiming::Init(); + VideoCore::Init(emu_window); +} + +void RunLoopFor(int cycles) { + RunLoopUntil(CoreTiming::GetTicks() + cycles); +} + +void RunLoopUntil(u64 global_cycles) { +} + +void Shutdown() { + Core::Shutdown(); + HW::Shutdown(); + VideoCore::Shutdown(); + g_ctr_file_system.Shutdown(); +} + +} // namespace -- cgit v1.2.3