set_sys.cpp 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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/kernel/client_port.h"
  7. #include "core/hle/service/set/set_sys.h"
  8. namespace Service {
  9. namespace Set {
  10. void SET_SYS::GetColorSetId(Kernel::HLERequestContext& ctx) {
  11. IPC::ResponseBuilder rb{ctx, 3};
  12. rb.Push(RESULT_SUCCESS);
  13. rb.Push<u32>(0);
  14. LOG_WARNING(Service_SET, "(STUBBED) called");
  15. }
  16. SET_SYS::SET_SYS() : ServiceFramework("set:sys") {
  17. static const FunctionInfo functions[] = {
  18. {0, nullptr, "SetLanguageCode"},
  19. {1, nullptr, "SetNetworkSettings"},
  20. {2, nullptr, "GetNetworkSettings"},
  21. {3, nullptr, "GetFirmwareVersion"},
  22. {4, nullptr, "GetFirmwareVersion2"},
  23. {7, nullptr, "GetLockScreenFlag"},
  24. {8, nullptr, "SetLockScreenFlag"},
  25. {9, nullptr, "GetBacklightSettings"},
  26. {10, nullptr, "SetBacklightSettings"},
  27. {11, nullptr, "SetBluetoothDevicesSettings"},
  28. {12, nullptr, "GetBluetoothDevicesSettings"},
  29. {13, nullptr, "GetExternalSteadyClockSourceId"},
  30. {14, nullptr, "SetExternalSteadyClockSourceId"},
  31. {15, nullptr, "GetUserSystemClockContext"},
  32. {16, nullptr, "SetUserSystemClockContext"},
  33. {17, nullptr, "GetAccountSettings"},
  34. {18, nullptr, "SetAccountSettings"},
  35. {19, nullptr, "GetAudioVolume"},
  36. {20, nullptr, "SetAudioVolume"},
  37. {21, nullptr, "GetEulaVersions"},
  38. {22, nullptr, "SetEulaVersions"},
  39. {23, &SET_SYS::GetColorSetId, "GetColorSetId"},
  40. {24, nullptr, "SetColorSetId"},
  41. {25, nullptr, "GetConsoleInformationUploadFlag"},
  42. {26, nullptr, "SetConsoleInformationUploadFlag"},
  43. {27, nullptr, "GetAutomaticApplicationDownloadFlag"},
  44. {28, nullptr, "SetAutomaticApplicationDownloadFlag"},
  45. {29, nullptr, "GetNotificationSettings"},
  46. {30, nullptr, "SetNotificationSettings"},
  47. {31, nullptr, "GetAccountNotificationSettings"},
  48. {32, nullptr, "SetAccountNotificationSettings"},
  49. {35, nullptr, "GetVibrationMasterVolume"},
  50. {36, nullptr, "SetVibrationMasterVolume"},
  51. {37, nullptr, "GetSettingsItemValueSize"},
  52. {38, nullptr, "GetSettingsItemValue"},
  53. {39, nullptr, "GetTvSettings"},
  54. {40, nullptr, "SetTvSettings"},
  55. {41, nullptr, "GetEdid"},
  56. {42, nullptr, "SetEdid"},
  57. {43, nullptr, "GetAudioOutputMode"},
  58. {44, nullptr, "SetAudioOutputMode"},
  59. {45, nullptr, "IsForceMuteOnHeadphoneRemoved"},
  60. {46, nullptr, "SetForceMuteOnHeadphoneRemoved"},
  61. {47, nullptr, "GetQuestFlag"},
  62. {48, nullptr, "SetQuestFlag"},
  63. {49, nullptr, "GetDataDeletionSettings"},
  64. {50, nullptr, "SetDataDeletionSettings"},
  65. {51, nullptr, "GetInitialSystemAppletProgramId"},
  66. {52, nullptr, "GetOverlayDispProgramId"},
  67. {53, nullptr, "GetDeviceTimeZoneLocationName"},
  68. {54, nullptr, "SetDeviceTimeZoneLocationName"},
  69. {55, nullptr, "GetWirelessCertificationFileSize"},
  70. {56, nullptr, "GetWirelessCertificationFile"},
  71. {57, nullptr, "SetRegionCode"},
  72. {58, nullptr, "GetNetworkSystemClockContext"},
  73. {59, nullptr, "SetNetworkSystemClockContext"},
  74. {60, nullptr, "IsUserSystemClockAutomaticCorrectionEnabled"},
  75. {61, nullptr, "SetUserSystemClockAutomaticCorrectionEnabled"},
  76. {62, nullptr, "GetDebugModeFlag"},
  77. {63, nullptr, "GetPrimaryAlbumStorage"},
  78. {64, nullptr, "SetPrimaryAlbumStorage"},
  79. {65, nullptr, "GetUsb30EnableFlag"},
  80. {66, nullptr, "SetUsb30EnableFlag"},
  81. {67, nullptr, "GetBatteryLot"},
  82. {68, nullptr, "GetSerialNumber"},
  83. {69, nullptr, "GetNfcEnableFlag"},
  84. {70, nullptr, "SetNfcEnableFlag"},
  85. {71, nullptr, "GetSleepSettings"},
  86. {72, nullptr, "SetSleepSettings"},
  87. {73, nullptr, "GetWirelessLanEnableFlag"},
  88. {74, nullptr, "SetWirelessLanEnableFlag"},
  89. {75, nullptr, "GetInitialLaunchSettings"},
  90. {76, nullptr, "SetInitialLaunchSettings"},
  91. {77, nullptr, "GetDeviceNickName"},
  92. {78, nullptr, "SetDeviceNickName"},
  93. {79, nullptr, "GetProductModel"},
  94. {80, nullptr, "GetLdnChannel"},
  95. {81, nullptr, "SetLdnChannel"},
  96. {82, nullptr, "AcquireTelemetryDirtyFlagEventHandle"},
  97. {83, nullptr, "GetTelemetryDirtyFlags"},
  98. {84, nullptr, "GetPtmBatteryLot"},
  99. {85, nullptr, "SetPtmBatteryLot"},
  100. {86, nullptr, "GetPtmFuelGaugeParameter"},
  101. {87, nullptr, "SetPtmFuelGaugeParameter"},
  102. {88, nullptr, "GetBluetoothEnableFlag"},
  103. {89, nullptr, "SetBluetoothEnableFlag"},
  104. {90, nullptr, "GetMiiAuthorId"},
  105. {91, nullptr, "SetShutdownRtcValue"},
  106. {92, nullptr, "GetShutdownRtcValue"},
  107. {93, nullptr, "AcquireFatalDirtyFlagEventHandle"},
  108. {94, nullptr, "GetFatalDirtyFlags"},
  109. {95, nullptr, "GetAutoUpdateEnableFlag"},
  110. {96, nullptr, "SetAutoUpdateEnableFlag"},
  111. {97, nullptr, "GetNxControllerSettings"},
  112. {98, nullptr, "SetNxControllerSettings"},
  113. {99, nullptr, "GetBatteryPercentageFlag"},
  114. {100, nullptr, "SetBatteryPercentageFlag"},
  115. {101, nullptr, "GetExternalRtcResetFlag"},
  116. {102, nullptr, "SetExternalRtcResetFlag"},
  117. {103, nullptr, "GetUsbFullKeyEnableFlag"},
  118. {104, nullptr, "SetUsbFullKeyEnableFlag"},
  119. {105, nullptr, "SetExternalSteadyClockInternalOffset"},
  120. {106, nullptr, "GetExternalSteadyClockInternalOffset"},
  121. {107, nullptr, "GetBacklightSettingsEx"},
  122. {108, nullptr, "SetBacklightSettingsEx"},
  123. {109, nullptr, "GetHeadphoneVolumeWarningCount"},
  124. {110, nullptr, "SetHeadphoneVolumeWarningCount"},
  125. {111, nullptr, "GetBluetoothAfhEnableFlag"},
  126. {112, nullptr, "SetBluetoothAfhEnableFlag"},
  127. {113, nullptr, "GetBluetoothBoostEnableFlag"},
  128. {114, nullptr, "SetBluetoothBoostEnableFlag"},
  129. {115, nullptr, "GetInRepairProcessEnableFlag"},
  130. {116, nullptr, "SetInRepairProcessEnableFlag"},
  131. {117, nullptr, "GetHeadphoneVolumeUpdateFlag"},
  132. {118, nullptr, "SetHeadphoneVolumeUpdateFlag"},
  133. {119, nullptr, "NeedsToUpdateHeadphoneVolume"},
  134. {120, nullptr, "GetPushNotificationActivityModeOnSleep"},
  135. {121, nullptr, "SetPushNotificationActivityModeOnSleep"},
  136. {122, nullptr, "GetServiceDiscoveryControlSettings"},
  137. {123, nullptr, "SetServiceDiscoveryControlSettings"},
  138. {124, nullptr, "GetErrorReportSharePermission"},
  139. {125, nullptr, "SetErrorReportSharePermission"},
  140. {126, nullptr, "GetAppletLaunchFlags"},
  141. {127, nullptr, "SetAppletLaunchFlags"},
  142. {128, nullptr, "GetConsoleSixAxisSensorAccelerationBias"},
  143. {129, nullptr, "SetConsoleSixAxisSensorAccelerationBias"},
  144. {130, nullptr, "GetConsoleSixAxisSensorAngularVelocityBias"},
  145. {131, nullptr, "SetConsoleSixAxisSensorAngularVelocityBias"},
  146. {132, nullptr, "GetConsoleSixAxisSensorAccelerationGain"},
  147. {133, nullptr, "SetConsoleSixAxisSensorAccelerationGain"},
  148. {134, nullptr, "GetConsoleSixAxisSensorAngularVelocityGain"},
  149. {135, nullptr, "SetConsoleSixAxisSensorAngularVelocityGain"},
  150. {136, nullptr, "GetKeyboardLayout"},
  151. {137, nullptr, "SetKeyboardLayout"},
  152. {138, nullptr, "GetWebInspectorFlag"},
  153. {139, nullptr, "GetAllowedSslHosts"},
  154. {140, nullptr, "GetHostFsMountPoint"},
  155. };
  156. RegisterHandlers(functions);
  157. }
  158. } // namespace Set
  159. } // namespace Service