Skip to content

Commit

Permalink
Fix logging related crash in KPADGetUnifiedWpadStatus (#875)
Browse files Browse the repository at this point in the history
  • Loading branch information
Squall-Leonhart committed Jun 22, 2023
1 parent cd3fe06 commit 1beec40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cafe/OS/libs/padscore/padscore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ void padscoreExport_KPADGetUnifiedWpadStatus(PPCInterpreter_t* hCPU)
ppcDefineParamPtr(status, KPADUnifiedWpadStatus_t, 1);
ppcDefineParamU32(count, 2);

cemuLog_log(LogType::InputAPI, "KPADGetUnifiedWpadStatus({}, 0x{:x}, 0x{:x})", channel, fmt::ptr(status), count);
cemuLog_log(LogType::InputAPI, "KPADGetUnifiedWpadStatus({}, 0x{:08x}, 0x{:x})", channel, MEMPTR<void>(status).GetMPTR(), count);

if (channel < InputManager::kMaxWPADControllers)
{
Expand Down

0 comments on commit 1beec40

Please sign in to comment.