system.cpp 751 B

123456789101112131415161718192021222324252627282930313233343536
  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/system.h"
  7. #include "core/hw/hw.h"
  8. #include "core/hle/hle.h"
  9. #include "core/hle/kernel/kernel.h"
  10. #include "core/hle/kernel/memory.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. CoreTiming::Shutdown();
  28. Core::Shutdown();
  29. }
  30. } // namespace