Migrate gx2Log_printf to new logging (#761)

This commit is contained in:
why-keith 2023-04-13 13:13:54 +01:00 committed by GitHub
parent a8b30cf96b
commit 486e228f72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 45 additions and 45 deletions

View file

@ -15,7 +15,7 @@
void gx2Export_GX2SetSwapInterval(PPCInterpreter_t* hCPU)
{
gx2Log_printf("GX2SetSwapInterval(%d)\n", hCPU->gpr[3]);
cemuLog_log(LogType::GX2, "GX2SetSwapInterval({})", hCPU->gpr[3]);
if( hCPU->gpr[3] >= 20 )
{
cemuLog_log(LogType::Force, "GX2SetSwapInterval() called with out of range value ({})", hCPU->gpr[3]);
@ -27,7 +27,7 @@ void gx2Export_GX2SetSwapInterval(PPCInterpreter_t* hCPU)
void gx2Export_GX2GetSwapInterval(PPCInterpreter_t* hCPU)
{
gx2Log_printf("GX2GetSwapInterval()\n");
cemuLog_log(LogType::GX2, "GX2GetSwapInterval()");
osLib_returnFromFunction(hCPU, LatteGPUState.sharedArea->swapInterval);
}
@ -45,7 +45,7 @@ void gx2Export_GX2GetSwapStatus(PPCInterpreter_t* hCPU)
void gx2Export_GX2GetGPUTimeout(PPCInterpreter_t* hCPU)
{
gx2Log_printf("GX2GetGPUTimeout()\n");
cemuLog_log(LogType::GX2, "GX2GetGPUTimeout()");
osLib_returnFromFunction(hCPU, 0x3E8);
}
@ -53,14 +53,14 @@ void gx2Export_GX2GetGPUTimeout(PPCInterpreter_t* hCPU)
void gx2Export_GX2SampleTopGPUCycle(PPCInterpreter_t* hCPU)
{
gx2Log_printf("GX2SampleTopGPUCycle(0x%08x)\n", hCPU->gpr[3]);
cemuLog_log(LogType::GX2, "GX2SampleTopGPUCycle(0x{:08x})", hCPU->gpr[3]);
memory_writeU64(hCPU->gpr[3], coreinit::coreinit_getTimerTick());
osLib_returnFromFunction(hCPU, 0);
}
void gx2Export_GX2SampleBottomGPUCycle(PPCInterpreter_t* hCPU)
{
gx2Log_printf("GX2SampleBottomGPUCycle(0x%08x)\n", hCPU->gpr[3]);
cemuLog_log(LogType::GX2, "GX2SampleBottomGPUCycle(0x{:08x})", hCPU->gpr[3]);
memory_writeU64(hCPU->gpr[3], GX2_INVALID_COUNTER_VALUE_U64);
osLib_returnFromFunction(hCPU, 0);