VERY experimental Nintendo Switch 2 emulator
C++
hid: Move logging macros over to new fmt-compatible ones
Lioncash0cbbb1c13036
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cppindex aad5e688bd..736180b633 100644--- a/src/core/hle/service/hid/hid.cpp+++ b/src/core/hle/service/hid/hid.cpp@@ -53,7 +53,7 @@ private:IPC::ResponseBuilder rb{ctx, 2, 1};rb.Push(RESULT_SUCCESS);rb.PushCopyObjects(shared_mem);- LOG_DEBUG(Service_HID, "called");+ NGLOG_DEBUG(Service_HID, "called");}void LoadInputDevices() {@@ -184,7 +184,7 @@ private:void ActivateVibrationDevice(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 2};rb.Push(RESULT_SUCCESS);- LOG_WARNING(Service_HID, "(STUBBED) called");+ NGLOG_WARNING(Service_HID, "(STUBBED) called");}};@@ -286,144 +286,144 @@ private:IPC::ResponseBuilder rb{ctx, 2, 0, 1};rb.Push(RESULT_SUCCESS);rb.PushIpcInterface<IAppletResource>(applet_resource);- LOG_DEBUG(Service_HID, "called");+ NGLOG_DEBUG(Service_HID, "called");}void ActivateDebugPad(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 2};rb.Push(RESULT_SUCCESS);- LOG_WARNING(Service_HID, "(STUBBED) called");+ NGLOG_WARNING(Service_HID, "(STUBBED) called");}void ActivateTouchScreen(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 2};rb.Push(RESULT_SUCCESS);- LOG_WARNING(Service_HID, "(STUBBED) called");+ NGLOG_WARNING(Service_HID, "(STUBBED) called");}void ActivateMouse(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 2};rb.Push(RESULT_SUCCESS);- LOG_WARNING(Service_HID, "(STUBBED) called");+ NGLOG_WARNING(Service_HID, "(STUBBED) called");}void ActivateKeyboard(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 2};rb.Push(RESULT_SUCCESS);- LOG_WARNING(Service_HID, "(STUBBED) called");+ NGLOG_WARNING(Service_HID, "(STUBBED) called");}void StartSixAxisSensor(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 2};rb.Push(RESULT_SUCCESS);- LOG_WARNING(Service_HID, "(STUBBED) called");+ NGLOG_WARNING(Service_HID, "(STUBBED) called");}void SetGyroscopeZeroDriftMode(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 2};rb.Push(RESULT_SUCCESS);- LOG_WARNING(Service_HID, "(STUBBED) called");+ NGLOG_WARNING(Service_HID, "(STUBBED) called");}void SetSupportedNpadStyleSet(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 2};rb.Push(RESULT_SUCCESS);- LOG_WARNING(Service_HID, "(STUBBED) called");+ NGLOG_WARNING(Service_HID, "(STUBBED) called");}void GetSupportedNpadStyleSet(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 3};rb.Push(RESULT_SUCCESS);rb.Push<u32>(0);- LOG_WARNING(Service_HID, "(STUBBED) called");+ NGLOG_WARNING(Service_HID, "(STUBBED) called");}void SetSupportedNpadIdType(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 2};rb.Push(RESULT_SUCCESS);- LOG_WARNING(Service_HID, "(STUBBED) called");+ NGLOG_WARNING(Service_HID, "(STUBBED) called");}void ActivateNpad(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 2};rb.Push(RESULT_SUCCESS);- LOG_WARNING(Service_HID, "(STUBBED) called");+ NGLOG_WARNING(Service_HID, "(STUBBED) called");}void AcquireNpadStyleSetUpdateEventHandle(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 2, 1};rb.Push(RESULT_SUCCESS);rb.PushCopyObjects(event);- LOG_WARNING(Service_HID, "(STUBBED) called");+ NGLOG_WARNING(Service_HID, "(STUBBED) called");}void GetPlayerLedPattern(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 2};rb.Push(RESULT_SUCCESS);- LOG_WARNING(Service_HID, "(STUBBED) called");+ NGLOG_WARNING(Service_HID, "(STUBBED) called");}void SetNpadJoyHoldType(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 2};rb.Push(RESULT_SUCCESS);- LOG_WARNING(Service_HID, "(STUBBED) called");+ NGLOG_WARNING(Service_HID, "(STUBBED) called");}void GetNpadJoyHoldType(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 3};rb.Push(RESULT_SUCCESS);rb.Push(joy_hold_type);- LOG_WARNING(Service_HID, "(STUBBED) called");+ NGLOG_WARNING(Service_HID, "(STUBBED) called");}void SetNpadJoyAssignmentModeSingleByDefault(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 2};rb.Push(RESULT_SUCCESS);- LOG_WARNING(Service_HID, "(STUBBED) called");+ NGLOG_WARNING(Service_HID, "(STUBBED) called");}void SendVibrationValue(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 2};rb.Push(RESULT_SUCCESS);- LOG_WARNING(Service_HID, "(STUBBED) called");+ NGLOG_WARNING(Service_HID, "(STUBBED) called");}void GetActualVibrationValue(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 2};rb.Push(RESULT_SUCCESS);- LOG_WARNING(Service_HID, "(STUBBED) called");+ NGLOG_WARNING(Service_HID, "(STUBBED) called");}void SetNpadJoyAssignmentModeDual(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 2};rb.Push(RESULT_SUCCESS);- LOG_WARNING(Service_HID, "(STUBBED) called");+ NGLOG_WARNING(Service_HID, "(STUBBED) called");}void SetNpadHandheldActivationMode(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 2};rb.Push(RESULT_SUCCESS);- LOG_WARNING(Service_HID, "(STUBBED) called");+ NGLOG_WARNING(Service_HID, "(STUBBED) called");}void GetVibrationDeviceInfo(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 4};rb.Push(RESULT_SUCCESS);rb.Push<u64>(0);- LOG_WARNING(Service_HID, "(STUBBED) called");+ NGLOG_WARNING(Service_HID, "(STUBBED) called");}void CreateActiveVibrationDeviceList(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 2, 0, 1};rb.Push(RESULT_SUCCESS);rb.PushIpcInterface<IActiveVibrationDeviceList>();- LOG_DEBUG(Service_HID, "called");+ NGLOG_DEBUG(Service_HID, "called");}void SendVibrationValues(Kernel::HLERequestContext& ctx) {IPC::ResponseBuilder rb{ctx, 2};rb.Push(RESULT_SUCCESS);- LOG_WARNING(Service_HID, "(STUBBED) called");+ NGLOG_WARNING(Service_HID, "(STUBBED) called");}};