system.cpp 998 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // Copyright 2014 Citra Emulator Project
  2. // Licensed under GPLv2
  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. MetaFileSystem g_ctr_file_system;
  15. void UpdateState(State state) {
  16. }
  17. void Init(EmuWindow* emu_window) {
  18. Core::Init();
  19. Memory::Init();
  20. HW::Init();
  21. HLE::Init();
  22. CoreTiming::Init();
  23. VideoCore::Init(emu_window);
  24. Kernel::Init();
  25. }
  26. void RunLoopFor(int cycles) {
  27. RunLoopUntil(CoreTiming::GetTicks() + cycles);
  28. }
  29. void RunLoopUntil(u64 global_cycles) {
  30. }
  31. void Shutdown() {
  32. Core::Shutdown();
  33. Memory::Shutdown();
  34. HW::Shutdown();
  35. HLE::Shutdown();
  36. CoreTiming::Shutdown();
  37. VideoCore::Shutdown();
  38. Kernel::Shutdown();
  39. g_ctr_file_system.Shutdown();
  40. }
  41. } // namespace