system.cpp 765 B

12345678910111213141516171819202122232425262728293031323334353637
  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. void Init(EmuWindow* emu_window) {
  14. Core::Init();
  15. CoreTiming::Init();
  16. Memory::Init();
  17. HW::Init();
  18. Kernel::Init();
  19. HLE::Init();
  20. VideoCore::Init(emu_window);
  21. }
  22. void Shutdown() {
  23. VideoCore::Shutdown();
  24. HLE::Shutdown();
  25. Kernel::Shutdown();
  26. HW::Shutdown();
  27. Memory::Shutdown();
  28. CoreTiming::Shutdown();
  29. Core::Shutdown();
  30. }
  31. } // namespace