diff options
| author | 2018-02-04 21:10:29 -0800 | |
|---|---|---|
| committer | 2018-02-04 21:10:29 -0800 | |
| commit | 35517ca92cc3290e2882e3e9009bbb02a038d6f2 (patch) | |
| tree | 0483cbc3d950644b9a042232c497c46d4c4b263e /src | |
| parent | Merge pull request #160 from bunnei/svc-improvements (diff) | |
| parent | set: GetAvailableLanguageCodes should not return lang_codes size. (diff) | |
| download | yuzu-35517ca92cc3290e2882e3e9009bbb02a038d6f2.tar.gz yuzu-35517ca92cc3290e2882e3e9009bbb02a038d6f2.tar.xz yuzu-35517ca92cc3290e2882e3e9009bbb02a038d6f2.zip | |
Merge pull request #161 from bunnei/service-improvements
Many service improvements
Diffstat (limited to 'src')
24 files changed, 211 insertions, 124 deletions
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp index be53be407..2bbc5bb16 100644 --- a/src/common/logging/backend.cpp +++ b/src/common/logging/backend.cpp | |||
| @@ -32,14 +32,20 @@ namespace Log { | |||
| 32 | CLS(Kernel) \ | 32 | CLS(Kernel) \ |
| 33 | SUB(Kernel, SVC) \ | 33 | SUB(Kernel, SVC) \ |
| 34 | CLS(Service) \ | 34 | CLS(Service) \ |
| 35 | SUB(Service, SM) \ | 35 | SUB(Service, ACC) \ |
| 36 | SUB(Service, Audio) \ | ||
| 37 | SUB(Service, AM) \ | ||
| 38 | SUB(Service, APM) \ | ||
| 36 | SUB(Service, FS) \ | 39 | SUB(Service, FS) \ |
| 37 | SUB(Service, GSP) \ | ||
| 38 | SUB(Service, CFG) \ | ||
| 39 | SUB(Service, DSP) \ | ||
| 40 | SUB(Service, HID) \ | 40 | SUB(Service, HID) \ |
| 41 | SUB(Service, LM) \ | ||
| 42 | SUB(Service, NIFM) \ | ||
| 41 | SUB(Service, NVDRV) \ | 43 | SUB(Service, NVDRV) \ |
| 42 | SUB(Service, Audio) \ | 44 | SUB(Service, PCTL) \ |
| 45 | SUB(Service, SET) \ | ||
| 46 | SUB(Service, SM) \ | ||
| 47 | SUB(Service, Time) \ | ||
| 48 | SUB(Service, VI) \ | ||
| 43 | CLS(HW) \ | 49 | CLS(HW) \ |
| 44 | SUB(HW, Memory) \ | 50 | SUB(HW, Memory) \ |
| 45 | SUB(HW, LCD) \ | 51 | SUB(HW, LCD) \ |
diff --git a/src/common/logging/log.h b/src/common/logging/log.h index 09ea7a2c7..0d79b8498 100644 --- a/src/common/logging/log.h +++ b/src/common/logging/log.h | |||
| @@ -49,14 +49,20 @@ enum class Class : ClassType { | |||
| 49 | Kernel_SVC, ///< Kernel system calls | 49 | Kernel_SVC, ///< Kernel system calls |
| 50 | Service, ///< HLE implementation of system services. Each major service | 50 | Service, ///< HLE implementation of system services. Each major service |
| 51 | /// should have its own subclass. | 51 | /// should have its own subclass. |
| 52 | Service_SM, ///< The SRV (Service Directory) implementation | 52 | Service_ACC, ///< The ACC (Accounts) service |
| 53 | Service_FS, ///< The FS (Filesystem) service implementation | 53 | Service_AM, ///< The AM (Applet manager) service |
| 54 | Service_GSP, ///< The GSP (GPU control) service | 54 | Service_APM, ///< The APM (Performance) service |
| 55 | Service_CFG, ///< The CFG (Configuration) service | 55 | Service_Audio, ///< The Audio (Audio control) service |
| 56 | Service_DSP, ///< The DSP (DSP control) service | 56 | Service_FS, ///< The FS (Filesystem) service |
| 57 | Service_HID, ///< The HID (Human interface device) service | 57 | Service_HID, ///< The HID (Human interface device) service |
| 58 | Service_LM, ///< The LM (Logger) service | ||
| 59 | Service_NIFM, ///< The NIFM (Network interface) service | ||
| 58 | Service_NVDRV, ///< The NVDRV (Nvidia driver) service | 60 | Service_NVDRV, ///< The NVDRV (Nvidia driver) service |
| 59 | Service_Audio, ///< The Audio (Audio control) service | 61 | Service_PCTL, ///< The PCTL (Parental control) service |
| 62 | Service_SET, ///< The SET (Settings) service | ||
| 63 | Service_SM, ///< The SM (Service manager) service | ||
| 64 | Service_Time, ///< The time service | ||
| 65 | Service_VI, ///< The VI (Video interface) service | ||
| 60 | HW, ///< Low-level hardware emulation | 66 | HW, ///< Low-level hardware emulation |
| 61 | HW_Memory, ///< Memory-map and address translation | 67 | HW_Memory, ///< Memory-map and address translation |
| 62 | HW_LCD, ///< LCD register emulation | 68 | HW_LCD, ///< LCD register emulation |
diff --git a/src/core/hle/service/acc/acc_u0.cpp b/src/core/hle/service/acc/acc_u0.cpp index 63b60c927..ff9f6cca8 100644 --- a/src/core/hle/service/acc/acc_u0.cpp +++ b/src/core/hle/service/acc/acc_u0.cpp | |||
| @@ -20,7 +20,7 @@ public: | |||
| 20 | 20 | ||
| 21 | private: | 21 | private: |
| 22 | void GetBase(Kernel::HLERequestContext& ctx) { | 22 | void GetBase(Kernel::HLERequestContext& ctx) { |
| 23 | LOG_WARNING(Service, "(STUBBED) called"); | 23 | LOG_WARNING(Service_ACC, "(STUBBED) called"); |
| 24 | ProfileBase profile_base{}; | 24 | ProfileBase profile_base{}; |
| 25 | IPC::ResponseBuilder rb{ctx, 16}; | 25 | IPC::ResponseBuilder rb{ctx, 16}; |
| 26 | rb.Push(RESULT_SUCCESS); | 26 | rb.Push(RESULT_SUCCESS); |
| @@ -40,14 +40,14 @@ public: | |||
| 40 | 40 | ||
| 41 | private: | 41 | private: |
| 42 | void CheckAvailability(Kernel::HLERequestContext& ctx) { | 42 | void CheckAvailability(Kernel::HLERequestContext& ctx) { |
| 43 | LOG_WARNING(Service, "(STUBBED) called"); | 43 | LOG_WARNING(Service_ACC, "(STUBBED) called"); |
| 44 | IPC::ResponseBuilder rb{ctx, 3}; | 44 | IPC::ResponseBuilder rb{ctx, 3}; |
| 45 | rb.Push(RESULT_SUCCESS); | 45 | rb.Push(RESULT_SUCCESS); |
| 46 | rb.Push(true); // TODO: Check when this is supposed to return true and when not | 46 | rb.Push(true); // TODO: Check when this is supposed to return true and when not |
| 47 | } | 47 | } |
| 48 | 48 | ||
| 49 | void GetAccountId(Kernel::HLERequestContext& ctx) { | 49 | void GetAccountId(Kernel::HLERequestContext& ctx) { |
| 50 | LOG_WARNING(Service, "(STUBBED) called"); | 50 | LOG_WARNING(Service_ACC, "(STUBBED) called"); |
| 51 | IPC::ResponseBuilder rb{ctx, 4}; | 51 | IPC::ResponseBuilder rb{ctx, 4}; |
| 52 | rb.Push(RESULT_SUCCESS); | 52 | rb.Push(RESULT_SUCCESS); |
| 53 | rb.Push<u64>(0x12345678ABCDEF); | 53 | rb.Push<u64>(0x12345678ABCDEF); |
| @@ -55,7 +55,7 @@ private: | |||
| 55 | }; | 55 | }; |
| 56 | 56 | ||
| 57 | void ACC_U0::GetUserExistence(Kernel::HLERequestContext& ctx) { | 57 | void ACC_U0::GetUserExistence(Kernel::HLERequestContext& ctx) { |
| 58 | LOG_WARNING(Service, "(STUBBED) called"); | 58 | LOG_WARNING(Service_ACC, "(STUBBED) called"); |
| 59 | IPC::ResponseBuilder rb{ctx, 3}; | 59 | IPC::ResponseBuilder rb{ctx, 3}; |
| 60 | rb.Push(RESULT_SUCCESS); | 60 | rb.Push(RESULT_SUCCESS); |
| 61 | rb.Push(true); // TODO: Check when this is supposed to return true and when not | 61 | rb.Push(true); // TODO: Check when this is supposed to return true and when not |
| @@ -65,11 +65,11 @@ void ACC_U0::GetProfile(Kernel::HLERequestContext& ctx) { | |||
| 65 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 65 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 66 | rb.Push(RESULT_SUCCESS); | 66 | rb.Push(RESULT_SUCCESS); |
| 67 | rb.PushIpcInterface<IProfile>(); | 67 | rb.PushIpcInterface<IProfile>(); |
| 68 | LOG_DEBUG(Service, "called"); | 68 | LOG_DEBUG(Service_ACC, "called"); |
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | void ACC_U0::InitializeApplicationInfo(Kernel::HLERequestContext& ctx) { | 71 | void ACC_U0::InitializeApplicationInfo(Kernel::HLERequestContext& ctx) { |
| 72 | LOG_WARNING(Service, "(STUBBED) called"); | 72 | LOG_WARNING(Service_ACC, "(STUBBED) called"); |
| 73 | IPC::ResponseBuilder rb{ctx, 2}; | 73 | IPC::ResponseBuilder rb{ctx, 2}; |
| 74 | rb.Push(RESULT_SUCCESS); | 74 | rb.Push(RESULT_SUCCESS); |
| 75 | } | 75 | } |
| @@ -78,12 +78,21 @@ void ACC_U0::GetBaasAccountManagerForApplication(Kernel::HLERequestContext& ctx) | |||
| 78 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 78 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 79 | rb.Push(RESULT_SUCCESS); | 79 | rb.Push(RESULT_SUCCESS); |
| 80 | rb.PushIpcInterface<IManagerForApplication>(); | 80 | rb.PushIpcInterface<IManagerForApplication>(); |
| 81 | LOG_DEBUG(Service, "called"); | 81 | LOG_DEBUG(Service_ACC, "called"); |
| 82 | } | ||
| 83 | |||
| 84 | void ACC_U0::GetLastOpenedUser(Kernel::HLERequestContext& ctx) { | ||
| 85 | LOG_WARNING(Service_ACC, "(STUBBED) called"); | ||
| 86 | IPC::ResponseBuilder rb{ctx, 6}; | ||
| 87 | rb.Push(RESULT_SUCCESS); | ||
| 88 | rb.Push<u64>(0x0); | ||
| 89 | rb.Push<u64>(0x0); | ||
| 82 | } | 90 | } |
| 83 | 91 | ||
| 84 | ACC_U0::ACC_U0() : ServiceFramework("acc:u0") { | 92 | ACC_U0::ACC_U0() : ServiceFramework("acc:u0") { |
| 85 | static const FunctionInfo functions[] = { | 93 | static const FunctionInfo functions[] = { |
| 86 | {1, &ACC_U0::GetUserExistence, "GetUserExistence"}, | 94 | {1, &ACC_U0::GetUserExistence, "GetUserExistence"}, |
| 95 | {4, &ACC_U0::GetLastOpenedUser, "GetLastOpenedUser"}, | ||
| 87 | {5, &ACC_U0::GetProfile, "GetProfile"}, | 96 | {5, &ACC_U0::GetProfile, "GetProfile"}, |
| 88 | {100, &ACC_U0::InitializeApplicationInfo, "InitializeApplicationInfo"}, | 97 | {100, &ACC_U0::InitializeApplicationInfo, "InitializeApplicationInfo"}, |
| 89 | {101, &ACC_U0::GetBaasAccountManagerForApplication, "GetBaasAccountManagerForApplication"}, | 98 | {101, &ACC_U0::GetBaasAccountManagerForApplication, "GetBaasAccountManagerForApplication"}, |
diff --git a/src/core/hle/service/acc/acc_u0.h b/src/core/hle/service/acc/acc_u0.h index 51676e859..b38c2f95e 100644 --- a/src/core/hle/service/acc/acc_u0.h +++ b/src/core/hle/service/acc/acc_u0.h | |||
| @@ -28,6 +28,7 @@ public: | |||
| 28 | 28 | ||
| 29 | private: | 29 | private: |
| 30 | void GetUserExistence(Kernel::HLERequestContext& ctx); | 30 | void GetUserExistence(Kernel::HLERequestContext& ctx); |
| 31 | void GetLastOpenedUser(Kernel::HLERequestContext& ctx); | ||
| 31 | void GetProfile(Kernel::HLERequestContext& ctx); | 32 | void GetProfile(Kernel::HLERequestContext& ctx); |
| 32 | void InitializeApplicationInfo(Kernel::HLERequestContext& ctx); | 33 | void InitializeApplicationInfo(Kernel::HLERequestContext& ctx); |
| 33 | void GetBaasAccountManagerForApplication(Kernel::HLERequestContext& ctx); | 34 | void GetBaasAccountManagerForApplication(Kernel::HLERequestContext& ctx); |
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 2825abd1a..eb4a04c53 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp | |||
| @@ -22,14 +22,14 @@ IWindowController::IWindowController() : ServiceFramework("IWindowController") { | |||
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | void IWindowController::GetAppletResourceUserId(Kernel::HLERequestContext& ctx) { | 24 | void IWindowController::GetAppletResourceUserId(Kernel::HLERequestContext& ctx) { |
| 25 | LOG_WARNING(Service, "(STUBBED) called"); | 25 | LOG_WARNING(Service_AM, "(STUBBED) called"); |
| 26 | IPC::ResponseBuilder rb{ctx, 4}; | 26 | IPC::ResponseBuilder rb{ctx, 4}; |
| 27 | rb.Push(RESULT_SUCCESS); | 27 | rb.Push(RESULT_SUCCESS); |
| 28 | rb.Push<u64>(0); | 28 | rb.Push<u64>(0); |
| 29 | } | 29 | } |
| 30 | 30 | ||
| 31 | void IWindowController::AcquireForegroundRights(Kernel::HLERequestContext& ctx) { | 31 | void IWindowController::AcquireForegroundRights(Kernel::HLERequestContext& ctx) { |
| 32 | LOG_WARNING(Service, "(STUBBED) called"); | 32 | LOG_WARNING(Service_AM, "(STUBBED) called"); |
| 33 | IPC::ResponseBuilder rb{ctx, 2}; | 33 | IPC::ResponseBuilder rb{ctx, 2}; |
| 34 | rb.Push(RESULT_SUCCESS); | 34 | rb.Push(RESULT_SUCCESS); |
| 35 | } | 35 | } |
| @@ -73,14 +73,14 @@ void ISelfController::SetFocusHandlingMode(Kernel::HLERequestContext& ctx) { | |||
| 73 | IPC::ResponseBuilder rb{ctx, 2}; | 73 | IPC::ResponseBuilder rb{ctx, 2}; |
| 74 | rb.Push(RESULT_SUCCESS); | 74 | rb.Push(RESULT_SUCCESS); |
| 75 | 75 | ||
| 76 | LOG_WARNING(Service, "(STUBBED) called"); | 76 | LOG_WARNING(Service_AM, "(STUBBED) called"); |
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | void ISelfController::SetRestartMessageEnabled(Kernel::HLERequestContext& ctx) { | 79 | void ISelfController::SetRestartMessageEnabled(Kernel::HLERequestContext& ctx) { |
| 80 | IPC::ResponseBuilder rb{ctx, 2}; | 80 | IPC::ResponseBuilder rb{ctx, 2}; |
| 81 | rb.Push(RESULT_SUCCESS); | 81 | rb.Push(RESULT_SUCCESS); |
| 82 | 82 | ||
| 83 | LOG_WARNING(Service, "(STUBBED) called"); | 83 | LOG_WARNING(Service_AM, "(STUBBED) called"); |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | void ISelfController::SetPerformanceModeChangedNotification(Kernel::HLERequestContext& ctx) { | 86 | void ISelfController::SetPerformanceModeChangedNotification(Kernel::HLERequestContext& ctx) { |
| @@ -91,7 +91,7 @@ void ISelfController::SetPerformanceModeChangedNotification(Kernel::HLERequestCo | |||
| 91 | IPC::ResponseBuilder rb{ctx, 2}; | 91 | IPC::ResponseBuilder rb{ctx, 2}; |
| 92 | rb.Push(RESULT_SUCCESS); | 92 | rb.Push(RESULT_SUCCESS); |
| 93 | 93 | ||
| 94 | LOG_WARNING(Service, "(STUBBED) called flag=%u", static_cast<u32>(flag)); | 94 | LOG_WARNING(Service_AM, "(STUBBED) called flag=%u", static_cast<u32>(flag)); |
| 95 | } | 95 | } |
| 96 | 96 | ||
| 97 | void ISelfController::SetOperationModeChangedNotification(Kernel::HLERequestContext& ctx) { | 97 | void ISelfController::SetOperationModeChangedNotification(Kernel::HLERequestContext& ctx) { |
| @@ -102,7 +102,7 @@ void ISelfController::SetOperationModeChangedNotification(Kernel::HLERequestCont | |||
| 102 | IPC::ResponseBuilder rb{ctx, 2}; | 102 | IPC::ResponseBuilder rb{ctx, 2}; |
| 103 | rb.Push(RESULT_SUCCESS); | 103 | rb.Push(RESULT_SUCCESS); |
| 104 | 104 | ||
| 105 | LOG_WARNING(Service, "(STUBBED) called flag=%u", static_cast<u32>(flag)); | 105 | LOG_WARNING(Service_AM, "(STUBBED) called flag=%u", static_cast<u32>(flag)); |
| 106 | } | 106 | } |
| 107 | 107 | ||
| 108 | void ISelfController::SetOutOfFocusSuspendingEnabled(Kernel::HLERequestContext& ctx) { | 108 | void ISelfController::SetOutOfFocusSuspendingEnabled(Kernel::HLERequestContext& ctx) { |
| @@ -115,21 +115,21 @@ void ISelfController::SetOutOfFocusSuspendingEnabled(Kernel::HLERequestContext& | |||
| 115 | IPC::ResponseBuilder rb{ctx, 2}; | 115 | IPC::ResponseBuilder rb{ctx, 2}; |
| 116 | rb.Push(RESULT_SUCCESS); | 116 | rb.Push(RESULT_SUCCESS); |
| 117 | 117 | ||
| 118 | LOG_WARNING(Service, "(STUBBED) called enabled=%u", static_cast<u32>(enabled)); | 118 | LOG_WARNING(Service_AM, "(STUBBED) called enabled=%u", static_cast<u32>(enabled)); |
| 119 | } | 119 | } |
| 120 | 120 | ||
| 121 | void ISelfController::LockExit(Kernel::HLERequestContext& ctx) { | 121 | void ISelfController::LockExit(Kernel::HLERequestContext& ctx) { |
| 122 | IPC::ResponseBuilder rb{ctx, 2}; | 122 | IPC::ResponseBuilder rb{ctx, 2}; |
| 123 | rb.Push(RESULT_SUCCESS); | 123 | rb.Push(RESULT_SUCCESS); |
| 124 | 124 | ||
| 125 | LOG_WARNING(Service, "(STUBBED) called"); | 125 | LOG_WARNING(Service_AM, "(STUBBED) called"); |
| 126 | } | 126 | } |
| 127 | 127 | ||
| 128 | void ISelfController::UnlockExit(Kernel::HLERequestContext& ctx) { | 128 | void ISelfController::UnlockExit(Kernel::HLERequestContext& ctx) { |
| 129 | IPC::ResponseBuilder rb{ctx, 2}; | 129 | IPC::ResponseBuilder rb{ctx, 2}; |
| 130 | rb.Push(RESULT_SUCCESS); | 130 | rb.Push(RESULT_SUCCESS); |
| 131 | 131 | ||
| 132 | LOG_WARNING(Service, "(STUBBED) called"); | 132 | LOG_WARNING(Service_AM, "(STUBBED) called"); |
| 133 | } | 133 | } |
| 134 | 134 | ||
| 135 | void ISelfController::CreateManagedDisplayLayer(Kernel::HLERequestContext& ctx) { | 135 | void ISelfController::CreateManagedDisplayLayer(Kernel::HLERequestContext& ctx) { |
| @@ -142,7 +142,7 @@ void ISelfController::CreateManagedDisplayLayer(Kernel::HLERequestContext& ctx) | |||
| 142 | rb.Push(RESULT_SUCCESS); | 142 | rb.Push(RESULT_SUCCESS); |
| 143 | rb.Push(layer_id); | 143 | rb.Push(layer_id); |
| 144 | 144 | ||
| 145 | LOG_WARNING(Service, "(STUBBED) called"); | 145 | LOG_WARNING(Service_AM, "(STUBBED) called"); |
| 146 | } | 146 | } |
| 147 | 147 | ||
| 148 | ICommonStateGetter::ICommonStateGetter() : ServiceFramework("ICommonStateGetter") { | 148 | ICommonStateGetter::ICommonStateGetter() : ServiceFramework("ICommonStateGetter") { |
| @@ -165,7 +165,7 @@ void ICommonStateGetter::GetEventHandle(Kernel::HLERequestContext& ctx) { | |||
| 165 | rb.Push(RESULT_SUCCESS); | 165 | rb.Push(RESULT_SUCCESS); |
| 166 | rb.PushCopyObjects(event); | 166 | rb.PushCopyObjects(event); |
| 167 | 167 | ||
| 168 | LOG_WARNING(Service, "(STUBBED) called"); | 168 | LOG_WARNING(Service_AM, "(STUBBED) called"); |
| 169 | } | 169 | } |
| 170 | 170 | ||
| 171 | void ICommonStateGetter::ReceiveMessage(Kernel::HLERequestContext& ctx) { | 171 | void ICommonStateGetter::ReceiveMessage(Kernel::HLERequestContext& ctx) { |
| @@ -173,7 +173,7 @@ void ICommonStateGetter::ReceiveMessage(Kernel::HLERequestContext& ctx) { | |||
| 173 | rb.Push(RESULT_SUCCESS); | 173 | rb.Push(RESULT_SUCCESS); |
| 174 | rb.Push<u32>(15); | 174 | rb.Push<u32>(15); |
| 175 | 175 | ||
| 176 | LOG_WARNING(Service, "(STUBBED) called"); | 176 | LOG_WARNING(Service_AM, "(STUBBED) called"); |
| 177 | } | 177 | } |
| 178 | 178 | ||
| 179 | void ICommonStateGetter::GetCurrentFocusState(Kernel::HLERequestContext& ctx) { | 179 | void ICommonStateGetter::GetCurrentFocusState(Kernel::HLERequestContext& ctx) { |
| @@ -181,7 +181,7 @@ void ICommonStateGetter::GetCurrentFocusState(Kernel::HLERequestContext& ctx) { | |||
| 181 | rb.Push(RESULT_SUCCESS); | 181 | rb.Push(RESULT_SUCCESS); |
| 182 | rb.Push(static_cast<u8>(FocusState::InFocus)); | 182 | rb.Push(static_cast<u8>(FocusState::InFocus)); |
| 183 | 183 | ||
| 184 | LOG_WARNING(Service, "(STUBBED) called"); | 184 | LOG_WARNING(Service_AM, "(STUBBED) called"); |
| 185 | } | 185 | } |
| 186 | 186 | ||
| 187 | void ICommonStateGetter::GetOperationMode(Kernel::HLERequestContext& ctx) { | 187 | void ICommonStateGetter::GetOperationMode(Kernel::HLERequestContext& ctx) { |
| @@ -189,7 +189,7 @@ void ICommonStateGetter::GetOperationMode(Kernel::HLERequestContext& ctx) { | |||
| 189 | rb.Push(RESULT_SUCCESS); | 189 | rb.Push(RESULT_SUCCESS); |
| 190 | rb.Push(static_cast<u8>(OperationMode::Handheld)); | 190 | rb.Push(static_cast<u8>(OperationMode::Handheld)); |
| 191 | 191 | ||
| 192 | LOG_WARNING(Service, "(STUBBED) called"); | 192 | LOG_WARNING(Service_AM, "(STUBBED) called"); |
| 193 | } | 193 | } |
| 194 | 194 | ||
| 195 | void ICommonStateGetter::GetPerformanceMode(Kernel::HLERequestContext& ctx) { | 195 | void ICommonStateGetter::GetPerformanceMode(Kernel::HLERequestContext& ctx) { |
| @@ -197,7 +197,7 @@ void ICommonStateGetter::GetPerformanceMode(Kernel::HLERequestContext& ctx) { | |||
| 197 | rb.Push(RESULT_SUCCESS); | 197 | rb.Push(RESULT_SUCCESS); |
| 198 | rb.Push(static_cast<u32>(APM::PerformanceMode::Handheld)); | 198 | rb.Push(static_cast<u32>(APM::PerformanceMode::Handheld)); |
| 199 | 199 | ||
| 200 | LOG_WARNING(Service, "(STUBBED) called"); | 200 | LOG_WARNING(Service_AM, "(STUBBED) called"); |
| 201 | } | 201 | } |
| 202 | 202 | ||
| 203 | ILibraryAppletCreator::ILibraryAppletCreator() : ServiceFramework("ILibraryAppletCreator") {} | 203 | ILibraryAppletCreator::ILibraryAppletCreator() : ServiceFramework("ILibraryAppletCreator") {} |
| @@ -222,7 +222,7 @@ private: | |||
| 222 | rb.Push(RESULT_SUCCESS); | 222 | rb.Push(RESULT_SUCCESS); |
| 223 | rb.Push(static_cast<u64>(buffer.size())); | 223 | rb.Push(static_cast<u64>(buffer.size())); |
| 224 | 224 | ||
| 225 | LOG_DEBUG(Service, "called"); | 225 | LOG_DEBUG(Service_AM, "called"); |
| 226 | } | 226 | } |
| 227 | 227 | ||
| 228 | void Read(Kernel::HLERequestContext& ctx) { | 228 | void Read(Kernel::HLERequestContext& ctx) { |
| @@ -240,7 +240,7 @@ private: | |||
| 240 | 240 | ||
| 241 | rb.Push(RESULT_SUCCESS); | 241 | rb.Push(RESULT_SUCCESS); |
| 242 | 242 | ||
| 243 | LOG_DEBUG(Service, "called"); | 243 | LOG_DEBUG(Service_AM, "called"); |
| 244 | } | 244 | } |
| 245 | }; | 245 | }; |
| 246 | 246 | ||
| @@ -263,7 +263,7 @@ private: | |||
| 263 | rb.Push(RESULT_SUCCESS); | 263 | rb.Push(RESULT_SUCCESS); |
| 264 | rb.PushIpcInterface<AM::IStorageAccessor>(buffer); | 264 | rb.PushIpcInterface<AM::IStorageAccessor>(buffer); |
| 265 | 265 | ||
| 266 | LOG_DEBUG(Service, "called"); | 266 | LOG_DEBUG(Service_AM, "called"); |
| 267 | } | 267 | } |
| 268 | }; | 268 | }; |
| 269 | 269 | ||
| @@ -296,7 +296,7 @@ void IApplicationFunctions::PopLaunchParameter(Kernel::HLERequestContext& ctx) { | |||
| 296 | rb.Push(RESULT_SUCCESS); | 296 | rb.Push(RESULT_SUCCESS); |
| 297 | rb.PushIpcInterface<AM::IStorage>(buffer); | 297 | rb.PushIpcInterface<AM::IStorage>(buffer); |
| 298 | 298 | ||
| 299 | LOG_DEBUG(Service, "called"); | 299 | LOG_DEBUG(Service_AM, "called"); |
| 300 | } | 300 | } |
| 301 | 301 | ||
| 302 | void IApplicationFunctions::SetTerminateResult(Kernel::HLERequestContext& ctx) { | 302 | void IApplicationFunctions::SetTerminateResult(Kernel::HLERequestContext& ctx) { |
| @@ -309,27 +309,27 @@ void IApplicationFunctions::SetTerminateResult(Kernel::HLERequestContext& ctx) { | |||
| 309 | IPC::ResponseBuilder rb{ctx, 2}; | 309 | IPC::ResponseBuilder rb{ctx, 2}; |
| 310 | rb.Push(RESULT_SUCCESS); | 310 | rb.Push(RESULT_SUCCESS); |
| 311 | 311 | ||
| 312 | LOG_WARNING(Service, "(STUBBED) called, result=0x%08X", result); | 312 | LOG_WARNING(Service_AM, "(STUBBED) called, result=0x%08X", result); |
| 313 | } | 313 | } |
| 314 | 314 | ||
| 315 | void IApplicationFunctions::GetDesiredLanguage(Kernel::HLERequestContext& ctx) { | 315 | void IApplicationFunctions::GetDesiredLanguage(Kernel::HLERequestContext& ctx) { |
| 316 | IPC::ResponseBuilder rb{ctx, 4}; | 316 | IPC::ResponseBuilder rb{ctx, 4}; |
| 317 | rb.Push(RESULT_SUCCESS); | 317 | rb.Push(RESULT_SUCCESS); |
| 318 | rb.Push<u64>(SystemLanguage::English); | 318 | rb.Push<u64>(SystemLanguage::English); |
| 319 | LOG_WARNING(Service, "(STUBBED) called"); | 319 | LOG_WARNING(Service_AM, "(STUBBED) called"); |
| 320 | } | 320 | } |
| 321 | 321 | ||
| 322 | void IApplicationFunctions::InitializeGamePlayRecording(Kernel::HLERequestContext& ctx) { | 322 | void IApplicationFunctions::InitializeGamePlayRecording(Kernel::HLERequestContext& ctx) { |
| 323 | IPC::ResponseBuilder rb{ctx, 2}; | 323 | IPC::ResponseBuilder rb{ctx, 2}; |
| 324 | rb.Push(RESULT_SUCCESS); | 324 | rb.Push(RESULT_SUCCESS); |
| 325 | LOG_WARNING(Service, "(STUBBED) called"); | 325 | LOG_WARNING(Service_AM, "(STUBBED) called"); |
| 326 | } | 326 | } |
| 327 | 327 | ||
| 328 | void IApplicationFunctions::SetGamePlayRecordingState(Kernel::HLERequestContext& ctx) { | 328 | void IApplicationFunctions::SetGamePlayRecordingState(Kernel::HLERequestContext& ctx) { |
| 329 | IPC::ResponseBuilder rb{ctx, 2}; | 329 | IPC::ResponseBuilder rb{ctx, 2}; |
| 330 | rb.Push(RESULT_SUCCESS); | 330 | rb.Push(RESULT_SUCCESS); |
| 331 | 331 | ||
| 332 | LOG_WARNING(Service, "(STUBBED) called"); | 332 | LOG_WARNING(Service_AM, "(STUBBED) called"); |
| 333 | } | 333 | } |
| 334 | 334 | ||
| 335 | void IApplicationFunctions::NotifyRunning(Kernel::HLERequestContext& ctx) { | 335 | void IApplicationFunctions::NotifyRunning(Kernel::HLERequestContext& ctx) { |
| @@ -337,7 +337,7 @@ void IApplicationFunctions::NotifyRunning(Kernel::HLERequestContext& ctx) { | |||
| 337 | rb.Push(RESULT_SUCCESS); | 337 | rb.Push(RESULT_SUCCESS); |
| 338 | rb.Push<u8>(0); // Unknown, seems to be ignored by official processes | 338 | rb.Push<u8>(0); // Unknown, seems to be ignored by official processes |
| 339 | 339 | ||
| 340 | LOG_WARNING(Service, "(STUBBED) called"); | 340 | LOG_WARNING(Service_AM, "(STUBBED) called"); |
| 341 | } | 341 | } |
| 342 | 342 | ||
| 343 | void InstallInterfaces(SM::ServiceManager& service_manager, | 343 | void InstallInterfaces(SM::ServiceManager& service_manager, |
diff --git a/src/core/hle/service/am/applet_ae.cpp b/src/core/hle/service/am/applet_ae.cpp index a63fb6210..0e51caa70 100644 --- a/src/core/hle/service/am/applet_ae.cpp +++ b/src/core/hle/service/am/applet_ae.cpp | |||
| @@ -33,56 +33,56 @@ private: | |||
| 33 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 33 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 34 | rb.Push(RESULT_SUCCESS); | 34 | rb.Push(RESULT_SUCCESS); |
| 35 | rb.PushIpcInterface<ICommonStateGetter>(); | 35 | rb.PushIpcInterface<ICommonStateGetter>(); |
| 36 | LOG_DEBUG(Service, "called"); | 36 | LOG_DEBUG(Service_AM, "called"); |
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | void GetSelfController(Kernel::HLERequestContext& ctx) { | 39 | void GetSelfController(Kernel::HLERequestContext& ctx) { |
| 40 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 40 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 41 | rb.Push(RESULT_SUCCESS); | 41 | rb.Push(RESULT_SUCCESS); |
| 42 | rb.PushIpcInterface<ISelfController>(nvflinger); | 42 | rb.PushIpcInterface<ISelfController>(nvflinger); |
| 43 | LOG_DEBUG(Service, "called"); | 43 | LOG_DEBUG(Service_AM, "called"); |
| 44 | } | 44 | } |
| 45 | 45 | ||
| 46 | void GetWindowController(Kernel::HLERequestContext& ctx) { | 46 | void GetWindowController(Kernel::HLERequestContext& ctx) { |
| 47 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 47 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 48 | rb.Push(RESULT_SUCCESS); | 48 | rb.Push(RESULT_SUCCESS); |
| 49 | rb.PushIpcInterface<IWindowController>(); | 49 | rb.PushIpcInterface<IWindowController>(); |
| 50 | LOG_DEBUG(Service, "called"); | 50 | LOG_DEBUG(Service_AM, "called"); |
| 51 | } | 51 | } |
| 52 | 52 | ||
| 53 | void GetAudioController(Kernel::HLERequestContext& ctx) { | 53 | void GetAudioController(Kernel::HLERequestContext& ctx) { |
| 54 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 54 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 55 | rb.Push(RESULT_SUCCESS); | 55 | rb.Push(RESULT_SUCCESS); |
| 56 | rb.PushIpcInterface<IAudioController>(); | 56 | rb.PushIpcInterface<IAudioController>(); |
| 57 | LOG_DEBUG(Service, "called"); | 57 | LOG_DEBUG(Service_AM, "called"); |
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | void GetDisplayController(Kernel::HLERequestContext& ctx) { | 60 | void GetDisplayController(Kernel::HLERequestContext& ctx) { |
| 61 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 61 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 62 | rb.Push(RESULT_SUCCESS); | 62 | rb.Push(RESULT_SUCCESS); |
| 63 | rb.PushIpcInterface<IDisplayController>(); | 63 | rb.PushIpcInterface<IDisplayController>(); |
| 64 | LOG_DEBUG(Service, "called"); | 64 | LOG_DEBUG(Service_AM, "called"); |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | void GetDebugFunctions(Kernel::HLERequestContext& ctx) { | 67 | void GetDebugFunctions(Kernel::HLERequestContext& ctx) { |
| 68 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 68 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 69 | rb.Push(RESULT_SUCCESS); | 69 | rb.Push(RESULT_SUCCESS); |
| 70 | rb.PushIpcInterface<IDebugFunctions>(); | 70 | rb.PushIpcInterface<IDebugFunctions>(); |
| 71 | LOG_DEBUG(Service, "called"); | 71 | LOG_DEBUG(Service_AM, "called"); |
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | void GetLibraryAppletCreator(Kernel::HLERequestContext& ctx) { | 74 | void GetLibraryAppletCreator(Kernel::HLERequestContext& ctx) { |
| 75 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 75 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 76 | rb.Push(RESULT_SUCCESS); | 76 | rb.Push(RESULT_SUCCESS); |
| 77 | rb.PushIpcInterface<ILibraryAppletCreator>(); | 77 | rb.PushIpcInterface<ILibraryAppletCreator>(); |
| 78 | LOG_DEBUG(Service, "called"); | 78 | LOG_DEBUG(Service_AM, "called"); |
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | void GetApplicationFunctions(Kernel::HLERequestContext& ctx) { | 81 | void GetApplicationFunctions(Kernel::HLERequestContext& ctx) { |
| 82 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 82 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 83 | rb.Push(RESULT_SUCCESS); | 83 | rb.Push(RESULT_SUCCESS); |
| 84 | rb.PushIpcInterface<IApplicationFunctions>(); | 84 | rb.PushIpcInterface<IApplicationFunctions>(); |
| 85 | LOG_DEBUG(Service, "called"); | 85 | LOG_DEBUG(Service_AM, "called"); |
| 86 | } | 86 | } |
| 87 | 87 | ||
| 88 | std::shared_ptr<NVFlinger::NVFlinger> nvflinger; | 88 | std::shared_ptr<NVFlinger::NVFlinger> nvflinger; |
| @@ -92,7 +92,7 @@ void AppletAE::OpenLibraryAppletProxyOld(Kernel::HLERequestContext& ctx) { | |||
| 92 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 92 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 93 | rb.Push(RESULT_SUCCESS); | 93 | rb.Push(RESULT_SUCCESS); |
| 94 | rb.PushIpcInterface<ILibraryAppletProxy>(nvflinger); | 94 | rb.PushIpcInterface<ILibraryAppletProxy>(nvflinger); |
| 95 | LOG_DEBUG(Service, "called"); | 95 | LOG_DEBUG(Service_AM, "called"); |
| 96 | } | 96 | } |
| 97 | 97 | ||
| 98 | AppletAE::AppletAE(std::shared_ptr<NVFlinger::NVFlinger> nvflinger) | 98 | AppletAE::AppletAE(std::shared_ptr<NVFlinger::NVFlinger> nvflinger) |
diff --git a/src/core/hle/service/am/applet_oe.cpp b/src/core/hle/service/am/applet_oe.cpp index 5aa765770..bdcebe689 100644 --- a/src/core/hle/service/am/applet_oe.cpp +++ b/src/core/hle/service/am/applet_oe.cpp | |||
| @@ -33,56 +33,56 @@ private: | |||
| 33 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 33 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 34 | rb.Push(RESULT_SUCCESS); | 34 | rb.Push(RESULT_SUCCESS); |
| 35 | rb.PushIpcInterface<IAudioController>(); | 35 | rb.PushIpcInterface<IAudioController>(); |
| 36 | LOG_DEBUG(Service, "called"); | 36 | LOG_DEBUG(Service_AM, "called"); |
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | void GetDisplayController(Kernel::HLERequestContext& ctx) { | 39 | void GetDisplayController(Kernel::HLERequestContext& ctx) { |
| 40 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 40 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 41 | rb.Push(RESULT_SUCCESS); | 41 | rb.Push(RESULT_SUCCESS); |
| 42 | rb.PushIpcInterface<IDisplayController>(); | 42 | rb.PushIpcInterface<IDisplayController>(); |
| 43 | LOG_DEBUG(Service, "called"); | 43 | LOG_DEBUG(Service_AM, "called"); |
| 44 | } | 44 | } |
| 45 | 45 | ||
| 46 | void GetDebugFunctions(Kernel::HLERequestContext& ctx) { | 46 | void GetDebugFunctions(Kernel::HLERequestContext& ctx) { |
| 47 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 47 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 48 | rb.Push(RESULT_SUCCESS); | 48 | rb.Push(RESULT_SUCCESS); |
| 49 | rb.PushIpcInterface<IDebugFunctions>(); | 49 | rb.PushIpcInterface<IDebugFunctions>(); |
| 50 | LOG_DEBUG(Service, "called"); | 50 | LOG_DEBUG(Service_AM, "called"); |
| 51 | } | 51 | } |
| 52 | 52 | ||
| 53 | void GetWindowController(Kernel::HLERequestContext& ctx) { | 53 | void GetWindowController(Kernel::HLERequestContext& ctx) { |
| 54 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 54 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 55 | rb.Push(RESULT_SUCCESS); | 55 | rb.Push(RESULT_SUCCESS); |
| 56 | rb.PushIpcInterface<IWindowController>(); | 56 | rb.PushIpcInterface<IWindowController>(); |
| 57 | LOG_DEBUG(Service, "called"); | 57 | LOG_DEBUG(Service_AM, "called"); |
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | void GetSelfController(Kernel::HLERequestContext& ctx) { | 60 | void GetSelfController(Kernel::HLERequestContext& ctx) { |
| 61 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 61 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 62 | rb.Push(RESULT_SUCCESS); | 62 | rb.Push(RESULT_SUCCESS); |
| 63 | rb.PushIpcInterface<ISelfController>(nvflinger); | 63 | rb.PushIpcInterface<ISelfController>(nvflinger); |
| 64 | LOG_DEBUG(Service, "called"); | 64 | LOG_DEBUG(Service_AM, "called"); |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | void GetCommonStateGetter(Kernel::HLERequestContext& ctx) { | 67 | void GetCommonStateGetter(Kernel::HLERequestContext& ctx) { |
| 68 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 68 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 69 | rb.Push(RESULT_SUCCESS); | 69 | rb.Push(RESULT_SUCCESS); |
| 70 | rb.PushIpcInterface<ICommonStateGetter>(); | 70 | rb.PushIpcInterface<ICommonStateGetter>(); |
| 71 | LOG_DEBUG(Service, "called"); | 71 | LOG_DEBUG(Service_AM, "called"); |
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | void GetLibraryAppletCreator(Kernel::HLERequestContext& ctx) { | 74 | void GetLibraryAppletCreator(Kernel::HLERequestContext& ctx) { |
| 75 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 75 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 76 | rb.Push(RESULT_SUCCESS); | 76 | rb.Push(RESULT_SUCCESS); |
| 77 | rb.PushIpcInterface<ILibraryAppletCreator>(); | 77 | rb.PushIpcInterface<ILibraryAppletCreator>(); |
| 78 | LOG_DEBUG(Service, "called"); | 78 | LOG_DEBUG(Service_AM, "called"); |
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | void GetApplicationFunctions(Kernel::HLERequestContext& ctx) { | 81 | void GetApplicationFunctions(Kernel::HLERequestContext& ctx) { |
| 82 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 82 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 83 | rb.Push(RESULT_SUCCESS); | 83 | rb.Push(RESULT_SUCCESS); |
| 84 | rb.PushIpcInterface<IApplicationFunctions>(); | 84 | rb.PushIpcInterface<IApplicationFunctions>(); |
| 85 | LOG_DEBUG(Service, "called"); | 85 | LOG_DEBUG(Service_AM, "called"); |
| 86 | } | 86 | } |
| 87 | 87 | ||
| 88 | std::shared_ptr<NVFlinger::NVFlinger> nvflinger; | 88 | std::shared_ptr<NVFlinger::NVFlinger> nvflinger; |
| @@ -92,7 +92,7 @@ void AppletOE::OpenApplicationProxy(Kernel::HLERequestContext& ctx) { | |||
| 92 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 92 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 93 | rb.Push(RESULT_SUCCESS); | 93 | rb.Push(RESULT_SUCCESS); |
| 94 | rb.PushIpcInterface<IApplicationProxy>(nvflinger); | 94 | rb.PushIpcInterface<IApplicationProxy>(nvflinger); |
| 95 | LOG_DEBUG(Service, "called"); | 95 | LOG_DEBUG(Service_AM, "called"); |
| 96 | } | 96 | } |
| 97 | 97 | ||
| 98 | AppletOE::AppletOE(std::shared_ptr<NVFlinger::NVFlinger> nvflinger) | 98 | AppletOE::AppletOE(std::shared_ptr<NVFlinger::NVFlinger> nvflinger) |
diff --git a/src/core/hle/service/apm/apm.cpp b/src/core/hle/service/apm/apm.cpp index c4b1723c5..a7495d0a0 100644 --- a/src/core/hle/service/apm/apm.cpp +++ b/src/core/hle/service/apm/apm.cpp | |||
| @@ -33,7 +33,8 @@ private: | |||
| 33 | IPC::ResponseBuilder rb{ctx, 2}; | 33 | IPC::ResponseBuilder rb{ctx, 2}; |
| 34 | rb.Push(RESULT_SUCCESS); | 34 | rb.Push(RESULT_SUCCESS); |
| 35 | 35 | ||
| 36 | LOG_WARNING(Service, "(STUBBED) called mode=%u config=%u", static_cast<u32>(mode), config); | 36 | LOG_WARNING(Service_APM, "(STUBBED) called mode=%u config=%u", static_cast<u32>(mode), |
| 37 | config); | ||
| 37 | } | 38 | } |
| 38 | 39 | ||
| 39 | void GetPerformanceConfiguration(Kernel::HLERequestContext& ctx) { | 40 | void GetPerformanceConfiguration(Kernel::HLERequestContext& ctx) { |
| @@ -45,7 +46,7 @@ private: | |||
| 45 | rb.Push(RESULT_SUCCESS); | 46 | rb.Push(RESULT_SUCCESS); |
| 46 | rb.Push<u32>(0); // Performance configuration | 47 | rb.Push<u32>(0); // Performance configuration |
| 47 | 48 | ||
| 48 | LOG_WARNING(Service, "(STUBBED) called mode=%u", static_cast<u32>(mode)); | 49 | LOG_WARNING(Service_APM, "(STUBBED) called mode=%u", static_cast<u32>(mode)); |
| 49 | } | 50 | } |
| 50 | }; | 51 | }; |
| 51 | 52 | ||
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp index 326e0a4ab..be058a64e 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp | |||
| @@ -49,7 +49,7 @@ private: | |||
| 49 | IPC::ResponseBuilder rb{ctx, 2, 1}; | 49 | IPC::ResponseBuilder rb{ctx, 2, 1}; |
| 50 | rb.Push(RESULT_SUCCESS); | 50 | rb.Push(RESULT_SUCCESS); |
| 51 | rb.PushCopyObjects(shared_mem); | 51 | rb.PushCopyObjects(shared_mem); |
| 52 | LOG_DEBUG(Service, "called"); | 52 | LOG_DEBUG(Service_HID, "called"); |
| 53 | } | 53 | } |
| 54 | 54 | ||
| 55 | void LoadInputDevices() { | 55 | void LoadInputDevices() { |
| @@ -151,11 +151,37 @@ private: | |||
| 151 | buttons; | 151 | buttons; |
| 152 | }; | 152 | }; |
| 153 | 153 | ||
| 154 | class IActiveVibrationDeviceList final : public ServiceFramework<IActiveVibrationDeviceList> { | ||
| 155 | public: | ||
| 156 | IActiveVibrationDeviceList() : ServiceFramework("IActiveVibrationDeviceList") { | ||
| 157 | static const FunctionInfo functions[] = { | ||
| 158 | {0, &IActiveVibrationDeviceList::ActivateVibrationDevice, "ActivateVibrationDevice"}, | ||
| 159 | }; | ||
| 160 | RegisterHandlers(functions); | ||
| 161 | } | ||
| 162 | |||
| 163 | private: | ||
| 164 | void ActivateVibrationDevice(Kernel::HLERequestContext& ctx) { | ||
| 165 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 166 | rb.Push(RESULT_SUCCESS); | ||
| 167 | LOG_WARNING(Service_HID, "(STUBBED) called"); | ||
| 168 | } | ||
| 169 | }; | ||
| 170 | |||
| 154 | class Hid final : public ServiceFramework<Hid> { | 171 | class Hid final : public ServiceFramework<Hid> { |
| 155 | public: | 172 | public: |
| 156 | Hid() : ServiceFramework("hid") { | 173 | Hid() : ServiceFramework("hid") { |
| 157 | static const FunctionInfo functions[] = { | 174 | static const FunctionInfo functions[] = { |
| 158 | {0x00000000, &Hid::CreateAppletResource, "CreateAppletResource"}, | 175 | {0, &Hid::CreateAppletResource, "CreateAppletResource"}, |
| 176 | {1, &Hid::ActivateDebugPad, "ActivateDebugPad"}, | ||
| 177 | {11, nullptr, "ActivateTouchScreen"}, | ||
| 178 | {66, &Hid::StartSixAxisSensor, "StartSixAxisSensor"}, | ||
| 179 | {100, &Hid::SetSupportedNpadStyleSet, "SetSupportedNpadStyleSet"}, | ||
| 180 | {102, &Hid::SetSupportedNpadIdType, "SetSupportedNpadIdType"}, | ||
| 181 | {103, &Hid::ActivateNpad, "ActivateNpad"}, | ||
| 182 | {120, nullptr, "SetNpadJoyHoldType"}, | ||
| 183 | {124, nullptr, "SetNpadJoyAssignmentModeDual"}, | ||
| 184 | {203, &Hid::CreateActiveVibrationDeviceList, "CreateActiveVibrationDeviceList"}, | ||
| 159 | }; | 185 | }; |
| 160 | RegisterHandlers(functions); | 186 | RegisterHandlers(functions); |
| 161 | } | 187 | } |
| @@ -172,7 +198,44 @@ private: | |||
| 172 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 198 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 173 | rb.Push(RESULT_SUCCESS); | 199 | rb.Push(RESULT_SUCCESS); |
| 174 | rb.PushIpcInterface<IAppletResource>(applet_resource); | 200 | rb.PushIpcInterface<IAppletResource>(applet_resource); |
| 175 | LOG_DEBUG(Service, "called"); | 201 | LOG_DEBUG(Service_HID, "called"); |
| 202 | } | ||
| 203 | |||
| 204 | void ActivateDebugPad(Kernel::HLERequestContext& ctx) { | ||
| 205 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 206 | rb.Push(RESULT_SUCCESS); | ||
| 207 | LOG_WARNING(Service_HID, "(STUBBED) called"); | ||
| 208 | } | ||
| 209 | |||
| 210 | void StartSixAxisSensor(Kernel::HLERequestContext& ctx) { | ||
| 211 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 212 | rb.Push(RESULT_SUCCESS); | ||
| 213 | LOG_WARNING(Service_HID, "(STUBBED) called"); | ||
| 214 | } | ||
| 215 | |||
| 216 | void SetSupportedNpadStyleSet(Kernel::HLERequestContext& ctx) { | ||
| 217 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 218 | rb.Push(RESULT_SUCCESS); | ||
| 219 | LOG_WARNING(Service_HID, "(STUBBED) called"); | ||
| 220 | } | ||
| 221 | |||
| 222 | void SetSupportedNpadIdType(Kernel::HLERequestContext& ctx) { | ||
| 223 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 224 | rb.Push(RESULT_SUCCESS); | ||
| 225 | LOG_WARNING(Service_HID, "(STUBBED) called"); | ||
| 226 | } | ||
| 227 | |||
| 228 | void ActivateNpad(Kernel::HLERequestContext& ctx) { | ||
| 229 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 230 | rb.Push(RESULT_SUCCESS); | ||
| 231 | LOG_WARNING(Service_HID, "(STUBBED) called"); | ||
| 232 | } | ||
| 233 | |||
| 234 | void CreateActiveVibrationDeviceList(Kernel::HLERequestContext& ctx) { | ||
| 235 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | ||
| 236 | rb.Push(RESULT_SUCCESS); | ||
| 237 | rb.PushIpcInterface<IActiveVibrationDeviceList>(); | ||
| 238 | LOG_DEBUG(Service_HID, "called"); | ||
| 176 | } | 239 | } |
| 177 | }; | 240 | }; |
| 178 | 241 | ||
diff --git a/src/core/hle/service/lm/lm.cpp b/src/core/hle/service/lm/lm.cpp index 2843e0e40..c480f6b97 100644 --- a/src/core/hle/service/lm/lm.cpp +++ b/src/core/hle/service/lm/lm.cpp | |||
| @@ -76,7 +76,7 @@ private: | |||
| 76 | addr += sizeof(MessageHeader); | 76 | addr += sizeof(MessageHeader); |
| 77 | 77 | ||
| 78 | if (!header.IsSingleMessage()) { | 78 | if (!header.IsSingleMessage()) { |
| 79 | LOG_WARNING(Service, "Multi message logs are unimplemeneted"); | 79 | LOG_WARNING(Service_LM, "Multi message logs are unimplemeneted"); |
| 80 | return; | 80 | return; |
| 81 | } | 81 | } |
| 82 | 82 | ||
| @@ -125,7 +125,7 @@ private: | |||
| 125 | if (line) { | 125 | if (line) { |
| 126 | output += std::to_string(line) + ':'; | 126 | output += std::to_string(line) + ':'; |
| 127 | } | 127 | } |
| 128 | if (output.back() == ':') { | 128 | if (output.length() > 0 && output.back() == ':') { |
| 129 | output += ' '; | 129 | output += ' '; |
| 130 | } | 130 | } |
| 131 | output += message; | 131 | output += message; |
| @@ -150,7 +150,7 @@ void LM::Initialize(Kernel::HLERequestContext& ctx) { | |||
| 150 | rb.Push(RESULT_SUCCESS); | 150 | rb.Push(RESULT_SUCCESS); |
| 151 | rb.PushIpcInterface<Logger>(); | 151 | rb.PushIpcInterface<Logger>(); |
| 152 | 152 | ||
| 153 | LOG_DEBUG(Service, "called"); | 153 | LOG_DEBUG(Service_LM, "called"); |
| 154 | } | 154 | } |
| 155 | 155 | ||
| 156 | LM::LM() : ServiceFramework("lm") { | 156 | LM::LM() : ServiceFramework("lm") { |
diff --git a/src/core/hle/service/nifm/nifm.cpp b/src/core/hle/service/nifm/nifm.cpp index f91571eb4..290a2ee74 100644 --- a/src/core/hle/service/nifm/nifm.cpp +++ b/src/core/hle/service/nifm/nifm.cpp | |||
| @@ -112,7 +112,7 @@ IGeneralService::IGeneralService() : ServiceFramework("IGeneralService") { | |||
| 112 | } | 112 | } |
| 113 | 113 | ||
| 114 | void IGeneralService::GetClientId(Kernel::HLERequestContext& ctx) { | 114 | void IGeneralService::GetClientId(Kernel::HLERequestContext& ctx) { |
| 115 | LOG_WARNING(Service, "(STUBBED) called"); | 115 | LOG_WARNING(Service_NIFM, "(STUBBED) called"); |
| 116 | IPC::ResponseBuilder rb{ctx, 4}; | 116 | IPC::ResponseBuilder rb{ctx, 4}; |
| 117 | rb.Push(RESULT_SUCCESS); | 117 | rb.Push(RESULT_SUCCESS); |
| 118 | rb.Push<u64>(0); | 118 | rb.Push<u64>(0); |
| @@ -124,7 +124,7 @@ void IGeneralService::CreateScanRequest(Kernel::HLERequestContext& ctx) { | |||
| 124 | rb.Push(RESULT_SUCCESS); | 124 | rb.Push(RESULT_SUCCESS); |
| 125 | rb.PushIpcInterface<IScanRequest>(); | 125 | rb.PushIpcInterface<IScanRequest>(); |
| 126 | 126 | ||
| 127 | LOG_DEBUG(Service, "called"); | 127 | LOG_DEBUG(Service_NIFM, "called"); |
| 128 | } | 128 | } |
| 129 | 129 | ||
| 130 | void IGeneralService::CreateRequest(Kernel::HLERequestContext& ctx) { | 130 | void IGeneralService::CreateRequest(Kernel::HLERequestContext& ctx) { |
| @@ -133,11 +133,11 @@ void IGeneralService::CreateRequest(Kernel::HLERequestContext& ctx) { | |||
| 133 | rb.Push(RESULT_SUCCESS); | 133 | rb.Push(RESULT_SUCCESS); |
| 134 | rb.PushIpcInterface<IRequest>(); | 134 | rb.PushIpcInterface<IRequest>(); |
| 135 | 135 | ||
| 136 | LOG_DEBUG(Service, "called"); | 136 | LOG_DEBUG(Service_NIFM, "called"); |
| 137 | } | 137 | } |
| 138 | 138 | ||
| 139 | void IGeneralService::RemoveNetworkProfile(Kernel::HLERequestContext& ctx) { | 139 | void IGeneralService::RemoveNetworkProfile(Kernel::HLERequestContext& ctx) { |
| 140 | LOG_WARNING(Service, "(STUBBED) called"); | 140 | LOG_WARNING(Service_NIFM, "(STUBBED) called"); |
| 141 | IPC::ResponseBuilder rb{ctx, 2}; | 141 | IPC::ResponseBuilder rb{ctx, 2}; |
| 142 | rb.Push(RESULT_SUCCESS); | 142 | rb.Push(RESULT_SUCCESS); |
| 143 | } | 143 | } |
| @@ -148,7 +148,7 @@ void IGeneralService::CreateTemporaryNetworkProfile(Kernel::HLERequestContext& c | |||
| 148 | rb.Push(RESULT_SUCCESS); | 148 | rb.Push(RESULT_SUCCESS); |
| 149 | rb.PushIpcInterface<INetworkProfile>(); | 149 | rb.PushIpcInterface<INetworkProfile>(); |
| 150 | 150 | ||
| 151 | LOG_DEBUG(Service, "called"); | 151 | LOG_DEBUG(Service_NIFM, "called"); |
| 152 | } | 152 | } |
| 153 | 153 | ||
| 154 | void InstallInterfaces(SM::ServiceManager& service_manager) { | 154 | void InstallInterfaces(SM::ServiceManager& service_manager) { |
diff --git a/src/core/hle/service/nifm/nifm_a.cpp b/src/core/hle/service/nifm/nifm_a.cpp index 3835a87bf..ee61d8ff4 100644 --- a/src/core/hle/service/nifm/nifm_a.cpp +++ b/src/core/hle/service/nifm/nifm_a.cpp | |||
| @@ -14,14 +14,14 @@ void NIFM_A::CreateGeneralServiceOld(Kernel::HLERequestContext& ctx) { | |||
| 14 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 14 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 15 | rb.Push(RESULT_SUCCESS); | 15 | rb.Push(RESULT_SUCCESS); |
| 16 | rb.PushIpcInterface<IGeneralService>(); | 16 | rb.PushIpcInterface<IGeneralService>(); |
| 17 | LOG_DEBUG(Service, "called"); | 17 | LOG_DEBUG(Service_NIFM, "called"); |
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | void NIFM_A::CreateGeneralService(Kernel::HLERequestContext& ctx) { | 20 | void NIFM_A::CreateGeneralService(Kernel::HLERequestContext& ctx) { |
| 21 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 21 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 22 | rb.Push(RESULT_SUCCESS); | 22 | rb.Push(RESULT_SUCCESS); |
| 23 | rb.PushIpcInterface<IGeneralService>(); | 23 | rb.PushIpcInterface<IGeneralService>(); |
| 24 | LOG_DEBUG(Service, "called"); | 24 | LOG_DEBUG(Service_NIFM, "called"); |
| 25 | } | 25 | } |
| 26 | 26 | ||
| 27 | NIFM_A::NIFM_A() : ServiceFramework("nifm:a") { | 27 | NIFM_A::NIFM_A() : ServiceFramework("nifm:a") { |
diff --git a/src/core/hle/service/nifm/nifm_s.cpp b/src/core/hle/service/nifm/nifm_s.cpp index cbb42891c..c38b2a4c7 100644 --- a/src/core/hle/service/nifm/nifm_s.cpp +++ b/src/core/hle/service/nifm/nifm_s.cpp | |||
| @@ -14,14 +14,14 @@ void NIFM_S::CreateGeneralServiceOld(Kernel::HLERequestContext& ctx) { | |||
| 14 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 14 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 15 | rb.Push(RESULT_SUCCESS); | 15 | rb.Push(RESULT_SUCCESS); |
| 16 | rb.PushIpcInterface<IGeneralService>(); | 16 | rb.PushIpcInterface<IGeneralService>(); |
| 17 | LOG_DEBUG(Service, "called"); | 17 | LOG_DEBUG(Service_NIFM, "called"); |
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | void NIFM_S::CreateGeneralService(Kernel::HLERequestContext& ctx) { | 20 | void NIFM_S::CreateGeneralService(Kernel::HLERequestContext& ctx) { |
| 21 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 21 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 22 | rb.Push(RESULT_SUCCESS); | 22 | rb.Push(RESULT_SUCCESS); |
| 23 | rb.PushIpcInterface<IGeneralService>(); | 23 | rb.PushIpcInterface<IGeneralService>(); |
| 24 | LOG_DEBUG(Service, "called"); | 24 | LOG_DEBUG(Service_NIFM, "called"); |
| 25 | } | 25 | } |
| 26 | 26 | ||
| 27 | NIFM_S::NIFM_S() : ServiceFramework("nifm:s") { | 27 | NIFM_S::NIFM_S() : ServiceFramework("nifm:s") { |
diff --git a/src/core/hle/service/nifm/nifm_u.cpp b/src/core/hle/service/nifm/nifm_u.cpp index c6de14744..a5895c13c 100644 --- a/src/core/hle/service/nifm/nifm_u.cpp +++ b/src/core/hle/service/nifm/nifm_u.cpp | |||
| @@ -14,14 +14,14 @@ void NIFM_U::CreateGeneralServiceOld(Kernel::HLERequestContext& ctx) { | |||
| 14 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 14 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 15 | rb.Push(RESULT_SUCCESS); | 15 | rb.Push(RESULT_SUCCESS); |
| 16 | rb.PushIpcInterface<IGeneralService>(); | 16 | rb.PushIpcInterface<IGeneralService>(); |
| 17 | LOG_DEBUG(Service, "called"); | 17 | LOG_DEBUG(Service_NIFM, "called"); |
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | void NIFM_U::CreateGeneralService(Kernel::HLERequestContext& ctx) { | 20 | void NIFM_U::CreateGeneralService(Kernel::HLERequestContext& ctx) { |
| 21 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 21 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 22 | rb.Push(RESULT_SUCCESS); | 22 | rb.Push(RESULT_SUCCESS); |
| 23 | rb.PushIpcInterface<IGeneralService>(); | 23 | rb.PushIpcInterface<IGeneralService>(); |
| 24 | LOG_DEBUG(Service, "called"); | 24 | LOG_DEBUG(Service_NIFM, "called"); |
| 25 | } | 25 | } |
| 26 | 26 | ||
| 27 | NIFM_U::NIFM_U() : ServiceFramework("nifm:u") { | 27 | NIFM_U::NIFM_U() : ServiceFramework("nifm:u") { |
diff --git a/src/core/hle/service/nvdrv/devices/nvmap.cpp b/src/core/hle/service/nvdrv/devices/nvmap.cpp index 74ee7e154..f6196da1b 100644 --- a/src/core/hle/service/nvdrv/devices/nvmap.cpp +++ b/src/core/hle/service/nvdrv/devices/nvmap.cpp | |||
| @@ -52,7 +52,7 @@ u32 nvmap::IocCreate(const std::vector<u8>& input, std::vector<u8>& output) { | |||
| 52 | u32 handle = next_handle++; | 52 | u32 handle = next_handle++; |
| 53 | handles[handle] = std::move(object); | 53 | handles[handle] = std::move(object); |
| 54 | 54 | ||
| 55 | LOG_WARNING(Service, "(STUBBED) size 0x%08X", params.size); | 55 | LOG_WARNING(Service_NVDRV, "(STUBBED) size 0x%08X", params.size); |
| 56 | 56 | ||
| 57 | params.handle = handle; | 57 | params.handle = handle; |
| 58 | 58 | ||
| @@ -74,7 +74,7 @@ u32 nvmap::IocAlloc(const std::vector<u8>& input, std::vector<u8>& output) { | |||
| 74 | object->addr = params.addr; | 74 | object->addr = params.addr; |
| 75 | object->status = Object::Status::Allocated; | 75 | object->status = Object::Status::Allocated; |
| 76 | 76 | ||
| 77 | LOG_WARNING(Service, "(STUBBED) Allocated address 0x%llx", params.addr); | 77 | LOG_WARNING(Service_NVDRV, "(STUBBED) Allocated address 0x%llx", params.addr); |
| 78 | 78 | ||
| 79 | std::memcpy(output.data(), ¶ms, sizeof(params)); | 79 | std::memcpy(output.data(), ¶ms, sizeof(params)); |
| 80 | return 0; | 80 | return 0; |
| @@ -84,7 +84,7 @@ u32 nvmap::IocGetId(const std::vector<u8>& input, std::vector<u8>& output) { | |||
| 84 | IocGetIdParams params; | 84 | IocGetIdParams params; |
| 85 | std::memcpy(¶ms, input.data(), sizeof(params)); | 85 | std::memcpy(¶ms, input.data(), sizeof(params)); |
| 86 | 86 | ||
| 87 | LOG_WARNING(Service, "called"); | 87 | LOG_WARNING(Service_NVDRV, "called"); |
| 88 | 88 | ||
| 89 | auto itr = handles.find(params.handle); | 89 | auto itr = handles.find(params.handle); |
| 90 | ASSERT(itr != handles.end()); | 90 | ASSERT(itr != handles.end()); |
| @@ -99,7 +99,7 @@ u32 nvmap::IocFromId(const std::vector<u8>& input, std::vector<u8>& output) { | |||
| 99 | IocFromIdParams params; | 99 | IocFromIdParams params; |
| 100 | std::memcpy(¶ms, input.data(), sizeof(params)); | 100 | std::memcpy(¶ms, input.data(), sizeof(params)); |
| 101 | 101 | ||
| 102 | LOG_WARNING(Service, "(STUBBED) called"); | 102 | LOG_WARNING(Service_NVDRV, "(STUBBED) called"); |
| 103 | 103 | ||
| 104 | auto itr = std::find_if(handles.begin(), handles.end(), | 104 | auto itr = std::find_if(handles.begin(), handles.end(), |
| 105 | [&](const auto& entry) { return entry.second->id == params.id; }); | 105 | [&](const auto& entry) { return entry.second->id == params.id; }); |
| @@ -121,7 +121,7 @@ u32 nvmap::IocParam(const std::vector<u8>& input, std::vector<u8>& output) { | |||
| 121 | IocParamParams params; | 121 | IocParamParams params; |
| 122 | std::memcpy(¶ms, input.data(), sizeof(params)); | 122 | std::memcpy(¶ms, input.data(), sizeof(params)); |
| 123 | 123 | ||
| 124 | LOG_WARNING(Service, "(STUBBED) called type=%u", params.type); | 124 | LOG_WARNING(Service_NVDRV, "(STUBBED) called type=%u", params.type); |
| 125 | 125 | ||
| 126 | auto itr = handles.find(params.handle); | 126 | auto itr = handles.find(params.handle); |
| 127 | ASSERT(itr != handles.end()); | 127 | ASSERT(itr != handles.end()); |
diff --git a/src/core/hle/service/nvdrv/interface.cpp b/src/core/hle/service/nvdrv/interface.cpp index 85ecde6d2..af8fa44c9 100644 --- a/src/core/hle/service/nvdrv/interface.cpp +++ b/src/core/hle/service/nvdrv/interface.cpp | |||
| @@ -11,7 +11,7 @@ namespace Service { | |||
| 11 | namespace Nvidia { | 11 | namespace Nvidia { |
| 12 | 12 | ||
| 13 | void NVDRV::Open(Kernel::HLERequestContext& ctx) { | 13 | void NVDRV::Open(Kernel::HLERequestContext& ctx) { |
| 14 | LOG_WARNING(Service, "(STUBBED) called"); | 14 | LOG_WARNING(Service_NVDRV, "(STUBBED) called"); |
| 15 | 15 | ||
| 16 | auto buffer = ctx.BufferDescriptorA()[0]; | 16 | auto buffer = ctx.BufferDescriptorA()[0]; |
| 17 | 17 | ||
| @@ -25,7 +25,7 @@ void NVDRV::Open(Kernel::HLERequestContext& ctx) { | |||
| 25 | } | 25 | } |
| 26 | 26 | ||
| 27 | void NVDRV::Ioctl(Kernel::HLERequestContext& ctx) { | 27 | void NVDRV::Ioctl(Kernel::HLERequestContext& ctx) { |
| 28 | LOG_WARNING(Service, "(STUBBED) called"); | 28 | LOG_WARNING(Service_NVDRV, "(STUBBED) called"); |
| 29 | 29 | ||
| 30 | IPC::RequestParser rp{ctx}; | 30 | IPC::RequestParser rp{ctx}; |
| 31 | u32 fd = rp.Pop<u32>(); | 31 | u32 fd = rp.Pop<u32>(); |
| @@ -49,7 +49,7 @@ void NVDRV::Ioctl(Kernel::HLERequestContext& ctx) { | |||
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | void NVDRV::Close(Kernel::HLERequestContext& ctx) { | 51 | void NVDRV::Close(Kernel::HLERequestContext& ctx) { |
| 52 | LOG_WARNING(Service, "(STUBBED) called"); | 52 | LOG_WARNING(Service_NVDRV, "(STUBBED) called"); |
| 53 | 53 | ||
| 54 | IPC::RequestParser rp{ctx}; | 54 | IPC::RequestParser rp{ctx}; |
| 55 | u32 fd = rp.Pop<u32>(); | 55 | u32 fd = rp.Pop<u32>(); |
| @@ -61,7 +61,7 @@ void NVDRV::Close(Kernel::HLERequestContext& ctx) { | |||
| 61 | } | 61 | } |
| 62 | 62 | ||
| 63 | void NVDRV::Initialize(Kernel::HLERequestContext& ctx) { | 63 | void NVDRV::Initialize(Kernel::HLERequestContext& ctx) { |
| 64 | LOG_WARNING(Service, "(STUBBED) called"); | 64 | LOG_WARNING(Service_NVDRV, "(STUBBED) called"); |
| 65 | IPC::ResponseBuilder rb{ctx, 3}; | 65 | IPC::ResponseBuilder rb{ctx, 3}; |
| 66 | rb.Push(RESULT_SUCCESS); | 66 | rb.Push(RESULT_SUCCESS); |
| 67 | rb.Push<u32>(0); | 67 | rb.Push<u32>(0); |
| @@ -71,7 +71,7 @@ void NVDRV::SetClientPID(Kernel::HLERequestContext& ctx) { | |||
| 71 | IPC::RequestParser rp{ctx}; | 71 | IPC::RequestParser rp{ctx}; |
| 72 | pid = rp.Pop<u64>(); | 72 | pid = rp.Pop<u64>(); |
| 73 | 73 | ||
| 74 | LOG_INFO(Service, "called, pid=0x%lx", pid); | 74 | LOG_INFO(Service_NVDRV, "called, pid=0x%lx", pid); |
| 75 | IPC::ResponseBuilder rb{ctx, 3}; | 75 | IPC::ResponseBuilder rb{ctx, 3}; |
| 76 | rb.Push(RESULT_SUCCESS); | 76 | rb.Push(RESULT_SUCCESS); |
| 77 | rb.Push<u32>(0); | 77 | rb.Push<u32>(0); |
diff --git a/src/core/hle/service/nvflinger/buffer_queue.cpp b/src/core/hle/service/nvflinger/buffer_queue.cpp index 705bdbe5d..c7206a683 100644 --- a/src/core/hle/service/nvflinger/buffer_queue.cpp +++ b/src/core/hle/service/nvflinger/buffer_queue.cpp | |||
| @@ -14,6 +14,7 @@ namespace NVFlinger { | |||
| 14 | 14 | ||
| 15 | BufferQueue::BufferQueue(u32 id, u64 layer_id) : id(id), layer_id(layer_id) { | 15 | BufferQueue::BufferQueue(u32 id, u64 layer_id) : id(id), layer_id(layer_id) { |
| 16 | native_handle = Kernel::Event::Create(Kernel::ResetType::OneShot, "BufferQueue NativeHandle"); | 16 | native_handle = Kernel::Event::Create(Kernel::ResetType::OneShot, "BufferQueue NativeHandle"); |
| 17 | native_handle->Signal(); | ||
| 17 | } | 18 | } |
| 18 | 19 | ||
| 19 | void BufferQueue::SetPreallocatedBuffer(u32 slot, IGBPBuffer& igbp_buffer) { | 20 | void BufferQueue::SetPreallocatedBuffer(u32 slot, IGBPBuffer& igbp_buffer) { |
diff --git a/src/core/hle/service/pctl/pctl_a.cpp b/src/core/hle/service/pctl/pctl_a.cpp index c808b764b..c65fffa07 100644 --- a/src/core/hle/service/pctl/pctl_a.cpp +++ b/src/core/hle/service/pctl/pctl_a.cpp | |||
| @@ -18,7 +18,7 @@ void PCTL_A::GetService(Kernel::HLERequestContext& ctx) { | |||
| 18 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 18 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 19 | rb.Push(RESULT_SUCCESS); | 19 | rb.Push(RESULT_SUCCESS); |
| 20 | rb.PushIpcInterface<IParentalControlService>(); | 20 | rb.PushIpcInterface<IParentalControlService>(); |
| 21 | LOG_DEBUG(Service, "called"); | 21 | LOG_DEBUG(Service_PCTL, "called"); |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | PCTL_A::PCTL_A() : ServiceFramework("pctl:a") { | 24 | PCTL_A::PCTL_A() : ServiceFramework("pctl:a") { |
diff --git a/src/core/hle/service/set/set.cpp b/src/core/hle/service/set/set.cpp index e0e157fe1..1062ba8b3 100644 --- a/src/core/hle/service/set/set.cpp +++ b/src/core/hle/service/set/set.cpp | |||
| @@ -13,18 +13,19 @@ namespace Service { | |||
| 13 | namespace Set { | 13 | namespace Set { |
| 14 | 14 | ||
| 15 | void SET::GetAvailableLanguageCodes(Kernel::HLERequestContext& ctx) { | 15 | void SET::GetAvailableLanguageCodes(Kernel::HLERequestContext& ctx) { |
| 16 | IPC::RequestParser rp{ctx}; | ||
| 17 | u32 id = rp.Pop<u32>(); | ||
| 16 | constexpr std::array<u8, 13> lang_codes{}; | 18 | constexpr std::array<u8, 13> lang_codes{}; |
| 17 | 19 | ||
| 18 | const auto& output_buffer = ctx.BufferDescriptorC()[0]; | 20 | const auto& output_buffer = ctx.BufferDescriptorC()[0]; |
| 19 | 21 | ||
| 20 | Memory::WriteBlock(output_buffer.Address(), lang_codes.data(), lang_codes.size()); | 22 | Memory::WriteBlock(output_buffer.Address(), lang_codes.data(), lang_codes.size()); |
| 21 | 23 | ||
| 22 | IPC::ResponseBuilder rb{ctx, 4}; | 24 | IPC::ResponseBuilder rb{ctx, 2}; |
| 23 | 25 | ||
| 24 | rb.Push(RESULT_SUCCESS); | 26 | rb.Push(RESULT_SUCCESS); |
| 25 | rb.Push(static_cast<u64>(lang_codes.size())); | ||
| 26 | 27 | ||
| 27 | LOG_WARNING(Service, "(STUBBED) called"); | 28 | LOG_WARNING(Service_SET, "(STUBBED) called"); |
| 28 | } | 29 | } |
| 29 | 30 | ||
| 30 | SET::SET(const char* name) : ServiceFramework(name) { | 31 | SET::SET(const char* name) : ServiceFramework(name) { |
diff --git a/src/core/hle/service/time/time.cpp b/src/core/hle/service/time/time.cpp index 5802f6f6c..532b9c1c5 100644 --- a/src/core/hle/service/time/time.cpp +++ b/src/core/hle/service/time/time.cpp | |||
| @@ -29,14 +29,14 @@ private: | |||
| 29 | const s64 time_since_epoch{std::chrono::duration_cast<std::chrono::seconds>( | 29 | const s64 time_since_epoch{std::chrono::duration_cast<std::chrono::seconds>( |
| 30 | std::chrono::system_clock::now().time_since_epoch()) | 30 | std::chrono::system_clock::now().time_since_epoch()) |
| 31 | .count()}; | 31 | .count()}; |
| 32 | LOG_DEBUG(Service, "called"); | 32 | LOG_DEBUG(Service_Time, "called"); |
| 33 | IPC::ResponseBuilder rb{ctx, 4}; | 33 | IPC::ResponseBuilder rb{ctx, 4}; |
| 34 | rb.Push(RESULT_SUCCESS); | 34 | rb.Push(RESULT_SUCCESS); |
| 35 | rb.Push<u64>(time_since_epoch); | 35 | rb.Push<u64>(time_since_epoch); |
| 36 | } | 36 | } |
| 37 | 37 | ||
| 38 | void GetSystemClockContext(Kernel::HLERequestContext& ctx) { | 38 | void GetSystemClockContext(Kernel::HLERequestContext& ctx) { |
| 39 | LOG_WARNING(Service, "(STUBBED) called"); | 39 | LOG_WARNING(Service_Time, "(STUBBED) called"); |
| 40 | SystemClockContext system_clock_ontext{}; | 40 | SystemClockContext system_clock_ontext{}; |
| 41 | IPC::ResponseBuilder rb{ctx, (sizeof(SystemClockContext) / 4) + 2}; | 41 | IPC::ResponseBuilder rb{ctx, (sizeof(SystemClockContext) / 4) + 2}; |
| 42 | rb.Push(RESULT_SUCCESS); | 42 | rb.Push(RESULT_SUCCESS); |
| @@ -55,7 +55,7 @@ public: | |||
| 55 | 55 | ||
| 56 | private: | 56 | private: |
| 57 | void GetCurrentTimePoint(Kernel::HLERequestContext& ctx) { | 57 | void GetCurrentTimePoint(Kernel::HLERequestContext& ctx) { |
| 58 | LOG_DEBUG(Service, "called"); | 58 | LOG_DEBUG(Service_Time, "called"); |
| 59 | SteadyClockTimePoint steady_clock_time_point{cyclesToMs(CoreTiming::GetTicks()) / 1000}; | 59 | SteadyClockTimePoint steady_clock_time_point{cyclesToMs(CoreTiming::GetTicks()) / 1000}; |
| 60 | IPC::ResponseBuilder rb{ctx, (sizeof(SteadyClockTimePoint) / 4) + 2}; | 60 | IPC::ResponseBuilder rb{ctx, (sizeof(SteadyClockTimePoint) / 4) + 2}; |
| 61 | rb.Push(RESULT_SUCCESS); | 61 | rb.Push(RESULT_SUCCESS); |
| @@ -76,7 +76,7 @@ public: | |||
| 76 | 76 | ||
| 77 | private: | 77 | private: |
| 78 | void GetDeviceLocationName(Kernel::HLERequestContext& ctx) { | 78 | void GetDeviceLocationName(Kernel::HLERequestContext& ctx) { |
| 79 | LOG_WARNING(Service, "(STUBBED) called"); | 79 | LOG_WARNING(Service_Time, "(STUBBED) called"); |
| 80 | LocationName location_name{}; | 80 | LocationName location_name{}; |
| 81 | IPC::ResponseBuilder rb{ctx, (sizeof(LocationName) / 4) + 2}; | 81 | IPC::ResponseBuilder rb{ctx, (sizeof(LocationName) / 4) + 2}; |
| 82 | rb.Push(RESULT_SUCCESS); | 82 | rb.Push(RESULT_SUCCESS); |
| @@ -84,7 +84,7 @@ private: | |||
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | void GetTotalLocationNameCount(Kernel::HLERequestContext& ctx) { | 86 | void GetTotalLocationNameCount(Kernel::HLERequestContext& ctx) { |
| 87 | LOG_WARNING(Service, "(STUBBED) called"); | 87 | LOG_WARNING(Service_Time, "(STUBBED) called"); |
| 88 | IPC::ResponseBuilder rb{ctx, 3}; | 88 | IPC::ResponseBuilder rb{ctx, 3}; |
| 89 | rb.Push(RESULT_SUCCESS); | 89 | rb.Push(RESULT_SUCCESS); |
| 90 | rb.Push<u32>(0); | 90 | rb.Push<u32>(0); |
| @@ -94,7 +94,7 @@ private: | |||
| 94 | IPC::RequestParser rp{ctx}; | 94 | IPC::RequestParser rp{ctx}; |
| 95 | u64 posix_time = rp.Pop<u64>(); | 95 | u64 posix_time = rp.Pop<u64>(); |
| 96 | 96 | ||
| 97 | LOG_WARNING(Service, "(STUBBED) called, posix_time=0x%016llX", posix_time); | 97 | LOG_WARNING(Service_Time, "(STUBBED) called, posix_time=0x%016llX", posix_time); |
| 98 | 98 | ||
| 99 | CalendarTime calendar_time{2018, 1, 1, 0, 0, 0}; | 99 | CalendarTime calendar_time{2018, 1, 1, 0, 0, 0}; |
| 100 | CalendarAdditionalInfo additional_info{}; | 100 | CalendarAdditionalInfo additional_info{}; |
| @@ -109,28 +109,28 @@ void Module::Interface::GetStandardUserSystemClock(Kernel::HLERequestContext& ct | |||
| 109 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 109 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 110 | rb.Push(RESULT_SUCCESS); | 110 | rb.Push(RESULT_SUCCESS); |
| 111 | rb.PushIpcInterface<ISystemClock>(); | 111 | rb.PushIpcInterface<ISystemClock>(); |
| 112 | LOG_DEBUG(Service, "called"); | 112 | LOG_DEBUG(Service_Time, "called"); |
| 113 | } | 113 | } |
| 114 | 114 | ||
| 115 | void Module::Interface::GetStandardNetworkSystemClock(Kernel::HLERequestContext& ctx) { | 115 | void Module::Interface::GetStandardNetworkSystemClock(Kernel::HLERequestContext& ctx) { |
| 116 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 116 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 117 | rb.Push(RESULT_SUCCESS); | 117 | rb.Push(RESULT_SUCCESS); |
| 118 | rb.PushIpcInterface<ISystemClock>(); | 118 | rb.PushIpcInterface<ISystemClock>(); |
| 119 | LOG_DEBUG(Service, "called"); | 119 | LOG_DEBUG(Service_Time, "called"); |
| 120 | } | 120 | } |
| 121 | 121 | ||
| 122 | void Module::Interface::GetStandardSteadyClock(Kernel::HLERequestContext& ctx) { | 122 | void Module::Interface::GetStandardSteadyClock(Kernel::HLERequestContext& ctx) { |
| 123 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 123 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 124 | rb.Push(RESULT_SUCCESS); | 124 | rb.Push(RESULT_SUCCESS); |
| 125 | rb.PushIpcInterface<ISteadyClock>(); | 125 | rb.PushIpcInterface<ISteadyClock>(); |
| 126 | LOG_DEBUG(Service, "called"); | 126 | LOG_DEBUG(Service_Time, "called"); |
| 127 | } | 127 | } |
| 128 | 128 | ||
| 129 | void Module::Interface::GetTimeZoneService(Kernel::HLERequestContext& ctx) { | 129 | void Module::Interface::GetTimeZoneService(Kernel::HLERequestContext& ctx) { |
| 130 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 130 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 131 | rb.Push(RESULT_SUCCESS); | 131 | rb.Push(RESULT_SUCCESS); |
| 132 | rb.PushIpcInterface<ITimeZoneService>(); | 132 | rb.PushIpcInterface<ITimeZoneService>(); |
| 133 | LOG_DEBUG(Service, "called"); | 133 | LOG_DEBUG(Service_Time, "called"); |
| 134 | } | 134 | } |
| 135 | 135 | ||
| 136 | Module::Interface::Interface(std::shared_ptr<Module> time, const char* name) | 136 | Module::Interface::Interface(std::shared_ptr<Module> time, const char* name) |
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp index 2c7737fd9..adefba2b7 100644 --- a/src/core/hle/service/vi/vi.cpp +++ b/src/core/hle/service/vi/vi.cpp | |||
| @@ -429,7 +429,7 @@ private: | |||
| 429 | auto& output_buffer = ctx.BufferDescriptorB()[0]; | 429 | auto& output_buffer = ctx.BufferDescriptorB()[0]; |
| 430 | 430 | ||
| 431 | auto buffer_queue = nv_flinger->GetBufferQueue(id); | 431 | auto buffer_queue = nv_flinger->GetBufferQueue(id); |
| 432 | 432 | LOG_WARNING(Service_VI, "(STUBBED) called, transaction=%x", transaction); | |
| 433 | if (transaction == TransactionId::Connect) { | 433 | if (transaction == TransactionId::Connect) { |
| 434 | IGBPConnectRequestParcel request{input_data}; | 434 | IGBPConnectRequestParcel request{input_data}; |
| 435 | IGBPConnectResponseParcel response{1280, 720}; | 435 | IGBPConnectResponseParcel response{1280, 720}; |
| @@ -487,7 +487,6 @@ private: | |||
| 487 | ASSERT_MSG(false, "Unimplemented"); | 487 | ASSERT_MSG(false, "Unimplemented"); |
| 488 | } | 488 | } |
| 489 | 489 | ||
| 490 | LOG_WARNING(Service, "(STUBBED) called"); | ||
| 491 | IPC::ResponseBuilder rb{ctx, 2}; | 490 | IPC::ResponseBuilder rb{ctx, 2}; |
| 492 | rb.Push(RESULT_SUCCESS); | 491 | rb.Push(RESULT_SUCCESS); |
| 493 | } | 492 | } |
| @@ -498,7 +497,7 @@ private: | |||
| 498 | s32 addval = rp.PopRaw<s32>(); | 497 | s32 addval = rp.PopRaw<s32>(); |
| 499 | u32 type = rp.Pop<u32>(); | 498 | u32 type = rp.Pop<u32>(); |
| 500 | 499 | ||
| 501 | LOG_WARNING(Service, "(STUBBED) called id=%u, addval=%08X, type=%08X", id, addval, type); | 500 | LOG_WARNING(Service_VI, "(STUBBED) called id=%u, addval=%08X, type=%08X", id, addval, type); |
| 502 | IPC::ResponseBuilder rb{ctx, 2}; | 501 | IPC::ResponseBuilder rb{ctx, 2}; |
| 503 | rb.Push(RESULT_SUCCESS); | 502 | rb.Push(RESULT_SUCCESS); |
| 504 | } | 503 | } |
| @@ -512,7 +511,7 @@ private: | |||
| 512 | 511 | ||
| 513 | // TODO(Subv): Find out what this actually is. | 512 | // TODO(Subv): Find out what this actually is. |
| 514 | 513 | ||
| 515 | LOG_WARNING(Service, "(STUBBED) called id=%u, unknown=%08X", id, unknown); | 514 | LOG_WARNING(Service_VI, "(STUBBED) called id=%u, unknown=%08X", id, unknown); |
| 516 | IPC::ResponseBuilder rb{ctx, 2, 1}; | 515 | IPC::ResponseBuilder rb{ctx, 2, 1}; |
| 517 | rb.Push(RESULT_SUCCESS); | 516 | rb.Push(RESULT_SUCCESS); |
| 518 | rb.PushCopyObjects(buffer_queue->GetNativeHandle()); | 517 | rb.PushCopyObjects(buffer_queue->GetNativeHandle()); |
| @@ -534,7 +533,7 @@ public: | |||
| 534 | 533 | ||
| 535 | private: | 534 | private: |
| 536 | void SetLayerZ(Kernel::HLERequestContext& ctx) { | 535 | void SetLayerZ(Kernel::HLERequestContext& ctx) { |
| 537 | LOG_WARNING(Service, "(STUBBED) called"); | 536 | LOG_WARNING(Service_VI, "(STUBBED) called"); |
| 538 | IPC::RequestParser rp{ctx}; | 537 | IPC::RequestParser rp{ctx}; |
| 539 | u64 layer_id = rp.Pop<u64>(); | 538 | u64 layer_id = rp.Pop<u64>(); |
| 540 | u64 z_value = rp.Pop<u64>(); | 539 | u64 z_value = rp.Pop<u64>(); |
| @@ -560,7 +559,7 @@ public: | |||
| 560 | 559 | ||
| 561 | private: | 560 | private: |
| 562 | void CloseDisplay(Kernel::HLERequestContext& ctx) { | 561 | void CloseDisplay(Kernel::HLERequestContext& ctx) { |
| 563 | LOG_WARNING(Service, "(STUBBED) called"); | 562 | LOG_WARNING(Service_VI, "(STUBBED) called"); |
| 564 | IPC::RequestParser rp{ctx}; | 563 | IPC::RequestParser rp{ctx}; |
| 565 | u64 display = rp.Pop<u64>(); | 564 | u64 display = rp.Pop<u64>(); |
| 566 | 565 | ||
| @@ -569,7 +568,7 @@ private: | |||
| 569 | } | 568 | } |
| 570 | 569 | ||
| 571 | void CreateManagedLayer(Kernel::HLERequestContext& ctx) { | 570 | void CreateManagedLayer(Kernel::HLERequestContext& ctx) { |
| 572 | LOG_WARNING(Service, "(STUBBED) called"); | 571 | LOG_WARNING(Service_VI, "(STUBBED) called"); |
| 573 | IPC::RequestParser rp{ctx}; | 572 | IPC::RequestParser rp{ctx}; |
| 574 | u32 unknown = rp.Pop<u32>(); | 573 | u32 unknown = rp.Pop<u32>(); |
| 575 | rp.Skip(1, false); | 574 | rp.Skip(1, false); |
| @@ -584,7 +583,7 @@ private: | |||
| 584 | } | 583 | } |
| 585 | 584 | ||
| 586 | void AddToLayerStack(Kernel::HLERequestContext& ctx) { | 585 | void AddToLayerStack(Kernel::HLERequestContext& ctx) { |
| 587 | LOG_WARNING(Service, "(STUBBED) called"); | 586 | LOG_WARNING(Service_VI, "(STUBBED) called"); |
| 588 | IPC::RequestParser rp{ctx}; | 587 | IPC::RequestParser rp{ctx}; |
| 589 | u32 stack = rp.Pop<u32>(); | 588 | u32 stack = rp.Pop<u32>(); |
| 590 | u64 layer_id = rp.Pop<u64>(); | 589 | u64 layer_id = rp.Pop<u64>(); |
| @@ -597,7 +596,7 @@ private: | |||
| 597 | }; | 596 | }; |
| 598 | 597 | ||
| 599 | void IApplicationDisplayService::GetRelayService(Kernel::HLERequestContext& ctx) { | 598 | void IApplicationDisplayService::GetRelayService(Kernel::HLERequestContext& ctx) { |
| 600 | LOG_WARNING(Service, "(STUBBED) called"); | 599 | LOG_WARNING(Service_VI, "(STUBBED) called"); |
| 601 | 600 | ||
| 602 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 601 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 603 | rb.Push(RESULT_SUCCESS); | 602 | rb.Push(RESULT_SUCCESS); |
| @@ -605,7 +604,7 @@ void IApplicationDisplayService::GetRelayService(Kernel::HLERequestContext& ctx) | |||
| 605 | } | 604 | } |
| 606 | 605 | ||
| 607 | void IApplicationDisplayService::GetSystemDisplayService(Kernel::HLERequestContext& ctx) { | 606 | void IApplicationDisplayService::GetSystemDisplayService(Kernel::HLERequestContext& ctx) { |
| 608 | LOG_WARNING(Service, "(STUBBED) called"); | 607 | LOG_WARNING(Service_VI, "(STUBBED) called"); |
| 609 | 608 | ||
| 610 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 609 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 611 | rb.Push(RESULT_SUCCESS); | 610 | rb.Push(RESULT_SUCCESS); |
| @@ -613,7 +612,7 @@ void IApplicationDisplayService::GetSystemDisplayService(Kernel::HLERequestConte | |||
| 613 | } | 612 | } |
| 614 | 613 | ||
| 615 | void IApplicationDisplayService::GetManagerDisplayService(Kernel::HLERequestContext& ctx) { | 614 | void IApplicationDisplayService::GetManagerDisplayService(Kernel::HLERequestContext& ctx) { |
| 616 | LOG_WARNING(Service, "(STUBBED) called"); | 615 | LOG_WARNING(Service_VI, "(STUBBED) called"); |
| 617 | 616 | ||
| 618 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 617 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 619 | rb.Push(RESULT_SUCCESS); | 618 | rb.Push(RESULT_SUCCESS); |
| @@ -622,7 +621,7 @@ void IApplicationDisplayService::GetManagerDisplayService(Kernel::HLERequestCont | |||
| 622 | 621 | ||
| 623 | void IApplicationDisplayService::GetIndirectDisplayTransactionService( | 622 | void IApplicationDisplayService::GetIndirectDisplayTransactionService( |
| 624 | Kernel::HLERequestContext& ctx) { | 623 | Kernel::HLERequestContext& ctx) { |
| 625 | LOG_WARNING(Service, "(STUBBED) called"); | 624 | LOG_WARNING(Service_VI, "(STUBBED) called"); |
| 626 | 625 | ||
| 627 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 626 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 628 | rb.Push(RESULT_SUCCESS); | 627 | rb.Push(RESULT_SUCCESS); |
| @@ -630,7 +629,7 @@ void IApplicationDisplayService::GetIndirectDisplayTransactionService( | |||
| 630 | } | 629 | } |
| 631 | 630 | ||
| 632 | void IApplicationDisplayService::OpenDisplay(Kernel::HLERequestContext& ctx) { | 631 | void IApplicationDisplayService::OpenDisplay(Kernel::HLERequestContext& ctx) { |
| 633 | LOG_WARNING(Service, "(STUBBED) called"); | 632 | LOG_WARNING(Service_VI, "(STUBBED) called"); |
| 634 | IPC::RequestParser rp{ctx}; | 633 | IPC::RequestParser rp{ctx}; |
| 635 | auto name_buf = rp.PopRaw<std::array<u8, 0x40>>(); | 634 | auto name_buf = rp.PopRaw<std::array<u8, 0x40>>(); |
| 636 | auto end = std::find(name_buf.begin(), name_buf.end(), '\0'); | 635 | auto end = std::find(name_buf.begin(), name_buf.end(), '\0'); |
| @@ -645,7 +644,7 @@ void IApplicationDisplayService::OpenDisplay(Kernel::HLERequestContext& ctx) { | |||
| 645 | } | 644 | } |
| 646 | 645 | ||
| 647 | void IApplicationDisplayService::CloseDisplay(Kernel::HLERequestContext& ctx) { | 646 | void IApplicationDisplayService::CloseDisplay(Kernel::HLERequestContext& ctx) { |
| 648 | LOG_WARNING(Service, "(STUBBED) called"); | 647 | LOG_WARNING(Service_VI, "(STUBBED) called"); |
| 649 | IPC::RequestParser rp{ctx}; | 648 | IPC::RequestParser rp{ctx}; |
| 650 | u64 display_id = rp.Pop<u64>(); | 649 | u64 display_id = rp.Pop<u64>(); |
| 651 | 650 | ||
| @@ -654,7 +653,7 @@ void IApplicationDisplayService::CloseDisplay(Kernel::HLERequestContext& ctx) { | |||
| 654 | } | 653 | } |
| 655 | 654 | ||
| 656 | void IApplicationDisplayService::OpenLayer(Kernel::HLERequestContext& ctx) { | 655 | void IApplicationDisplayService::OpenLayer(Kernel::HLERequestContext& ctx) { |
| 657 | LOG_WARNING(Service, "(STUBBED) called"); | 656 | LOG_WARNING(Service_VI, "(STUBBED) called"); |
| 658 | IPC::RequestParser rp{ctx}; | 657 | IPC::RequestParser rp{ctx}; |
| 659 | auto name_buf = rp.PopRaw<std::array<u8, 0x40>>(); | 658 | auto name_buf = rp.PopRaw<std::array<u8, 0x40>>(); |
| 660 | auto end = std::find(name_buf.begin(), name_buf.end(), '\0'); | 659 | auto end = std::find(name_buf.begin(), name_buf.end(), '\0'); |
| @@ -704,7 +703,7 @@ void IApplicationDisplayService::CreateStrayLayer(Kernel::HLERequestContext& ctx | |||
| 704 | } | 703 | } |
| 705 | 704 | ||
| 706 | void IApplicationDisplayService::DestroyStrayLayer(Kernel::HLERequestContext& ctx) { | 705 | void IApplicationDisplayService::DestroyStrayLayer(Kernel::HLERequestContext& ctx) { |
| 707 | LOG_WARNING(Service, "(STUBBED) called"); | 706 | LOG_WARNING(Service_VI, "(STUBBED) called"); |
| 708 | 707 | ||
| 709 | IPC::RequestParser rp{ctx}; | 708 | IPC::RequestParser rp{ctx}; |
| 710 | u64 layer_id = rp.Pop<u64>(); | 709 | u64 layer_id = rp.Pop<u64>(); |
| @@ -714,7 +713,7 @@ void IApplicationDisplayService::DestroyStrayLayer(Kernel::HLERequestContext& ct | |||
| 714 | } | 713 | } |
| 715 | 714 | ||
| 716 | void IApplicationDisplayService::SetLayerScalingMode(Kernel::HLERequestContext& ctx) { | 715 | void IApplicationDisplayService::SetLayerScalingMode(Kernel::HLERequestContext& ctx) { |
| 717 | LOG_WARNING(Service, "(STUBBED) called"); | 716 | LOG_WARNING(Service_VI, "(STUBBED) called"); |
| 718 | IPC::RequestParser rp{ctx}; | 717 | IPC::RequestParser rp{ctx}; |
| 719 | u32 scaling_mode = rp.Pop<u32>(); | 718 | u32 scaling_mode = rp.Pop<u32>(); |
| 720 | u64 unknown = rp.Pop<u64>(); | 719 | u64 unknown = rp.Pop<u64>(); |
| @@ -724,7 +723,7 @@ void IApplicationDisplayService::SetLayerScalingMode(Kernel::HLERequestContext& | |||
| 724 | } | 723 | } |
| 725 | 724 | ||
| 726 | void IApplicationDisplayService::GetDisplayVsyncEvent(Kernel::HLERequestContext& ctx) { | 725 | void IApplicationDisplayService::GetDisplayVsyncEvent(Kernel::HLERequestContext& ctx) { |
| 727 | LOG_WARNING(Service, "(STUBBED) called"); | 726 | LOG_WARNING(Service_VI, "(STUBBED) called"); |
| 728 | IPC::RequestParser rp{ctx}; | 727 | IPC::RequestParser rp{ctx}; |
| 729 | u64 display_id = rp.Pop<u64>(); | 728 | u64 display_id = rp.Pop<u64>(); |
| 730 | 729 | ||
diff --git a/src/core/hle/service/vi/vi_m.cpp b/src/core/hle/service/vi/vi_m.cpp index bb440cadb..5d99647dc 100644 --- a/src/core/hle/service/vi/vi_m.cpp +++ b/src/core/hle/service/vi/vi_m.cpp | |||
| @@ -11,7 +11,7 @@ namespace Service { | |||
| 11 | namespace VI { | 11 | namespace VI { |
| 12 | 12 | ||
| 13 | void VI_M::GetDisplayService(Kernel::HLERequestContext& ctx) { | 13 | void VI_M::GetDisplayService(Kernel::HLERequestContext& ctx) { |
| 14 | LOG_WARNING(Service, "(STUBBED) called"); | 14 | LOG_WARNING(Service_VI, "(STUBBED) called"); |
| 15 | 15 | ||
| 16 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 16 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 17 | rb.Push(RESULT_SUCCESS); | 17 | rb.Push(RESULT_SUCCESS); |
diff --git a/src/core/hle/service/vi/vi_s.cpp b/src/core/hle/service/vi/vi_s.cpp index dc2848a9c..411757981 100644 --- a/src/core/hle/service/vi/vi_s.cpp +++ b/src/core/hle/service/vi/vi_s.cpp | |||
| @@ -11,7 +11,7 @@ namespace Service { | |||
| 11 | namespace VI { | 11 | namespace VI { |
| 12 | 12 | ||
| 13 | void VI_S::GetDisplayService(Kernel::HLERequestContext& ctx) { | 13 | void VI_S::GetDisplayService(Kernel::HLERequestContext& ctx) { |
| 14 | LOG_WARNING(Service, "(STUBBED) called"); | 14 | LOG_WARNING(Service_VI, "(STUBBED) called"); |
| 15 | 15 | ||
| 16 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 16 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 17 | rb.Push(RESULT_SUCCESS); | 17 | rb.Push(RESULT_SUCCESS); |
diff --git a/src/core/hle/service/vi/vi_u.cpp b/src/core/hle/service/vi/vi_u.cpp index 95c4d9fd7..f5568383b 100644 --- a/src/core/hle/service/vi/vi_u.cpp +++ b/src/core/hle/service/vi/vi_u.cpp | |||
| @@ -11,7 +11,7 @@ namespace Service { | |||
| 11 | namespace VI { | 11 | namespace VI { |
| 12 | 12 | ||
| 13 | void VI_U::GetDisplayService(Kernel::HLERequestContext& ctx) { | 13 | void VI_U::GetDisplayService(Kernel::HLERequestContext& ctx) { |
| 14 | LOG_WARNING(Service, "(STUBBED) called"); | 14 | LOG_WARNING(Service_VI, "(STUBBED) called"); |
| 15 | 15 | ||
| 16 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 16 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 17 | rb.Push(RESULT_SUCCESS); | 17 | rb.Push(RESULT_SUCCESS); |