system.cpp 918 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 "video_core/video_core.h"
  11. namespace System {
  12. volatile State g_state;
  13. MetaFileSystem g_ctr_file_system;
  14. void UpdateState(State state) {
  15. }
  16. void Init(EmuWindow* emu_window) {
  17. Core::Init();
  18. Memory::Init();
  19. HW::Init();
  20. HLE::Init();
  21. CoreTiming::Init();
  22. VideoCore::Init(emu_window);
  23. }
  24. void RunLoopFor(int cycles) {
  25. RunLoopUntil(CoreTiming::GetTicks() + cycles);
  26. }
  27. void RunLoopUntil(u64 global_cycles) {
  28. }
  29. void Shutdown() {
  30. Core::Shutdown();
  31. Memory::Shutdown();
  32. HW::Shutdown();
  33. HLE::Shutdown();
  34. CoreTiming::Shutdown();
  35. VideoCore::Shutdown();
  36. g_ctr_file_system.Shutdown();
  37. }
  38. } // namespace