system.cpp 951 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // Copyright 2014 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "core/core.h"
  5. #include "core/core_timing.h"
  6. #include "core/mem_map.h"
  7. #include "core/system.h"
  8. #include "core/hw/hw.h"
  9. #include "core/hle/hle.h"
  10. #include "core/hle/kernel/kernel.h"
  11. #include "video_core/video_core.h"
  12. namespace System {
  13. volatile State g_state;
  14. void UpdateState(State state) {
  15. }
  16. void Init(EmuWindow* emu_window) {
  17. Core::Init();
  18. Memory::Init();
  19. HW::Init();
  20. Kernel::Init();
  21. HLE::Init();
  22. CoreTiming::Init();
  23. VideoCore::Init(emu_window);
  24. }
  25. void RunLoopFor(int cycles) {
  26. RunLoopUntil(CoreTiming::GetTicks() + cycles);
  27. }
  28. void RunLoopUntil(u64 global_cycles) {
  29. }
  30. void Shutdown() {
  31. VideoCore::Shutdown();
  32. CoreTiming::Shutdown();
  33. HLE::Shutdown();
  34. Kernel::Shutdown();
  35. HW::Shutdown();
  36. Memory::Shutdown();
  37. Core::Shutdown();
  38. }
  39. } // namespace