apm.cpp 658 B

123456789101112131415161718192021222324
  1. // Copyright 2018 yuzu emulator team
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "common/logging/log.h"
  5. #include "core/hle/ipc_helpers.h"
  6. #include "core/hle/service/apm/apm.h"
  7. namespace Service {
  8. namespace APM {
  9. void InstallInterfaces(SM::ServiceManager& service_manager) {
  10. std::make_shared<APM>()->InstallAsService(service_manager);
  11. }
  12. APM::APM() : ServiceFramework("apm") {
  13. static const FunctionInfo functions[] = {
  14. {0x00000000, nullptr, "OpenSession"}, {0x00000001, nullptr, "GetPerformanceMode"},
  15. };
  16. RegisterHandlers(functions);
  17. }
  18. } // namespace APM
  19. } // namespace Service