mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-03 05:21:18 +12:00
Migrate force_log_printf to new logging (#714)
This commit is contained in:
parent
072c18a6e3
commit
4be57f4896
108 changed files with 401 additions and 399 deletions
|
@ -173,7 +173,7 @@ void GraphicPack2::ActivateForCurrentTitle()
|
|||
{
|
||||
if (gp->GetPresets().empty())
|
||||
{
|
||||
forceLog_printf("Activate graphic pack: %s", gp->GetPath().c_str());
|
||||
cemuLog_log(LogType::Force, "Activate graphic pack: {}", gp->GetPath());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -720,7 +720,7 @@ void GraphicPack2::LoadShaders()
|
|||
}
|
||||
catch (const std::exception& ex)
|
||||
{
|
||||
forceLog_printf("graphicPack: error while loading custom shader: %s", ex.what());
|
||||
cemuLog_log(LogType::Force, "graphicPack: error while loading custom shader: {}", ex.what());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -743,7 +743,7 @@ bool GraphicPack2::IsPresetVisible(const PresetPtr& preset) const
|
|||
}
|
||||
catch (const std::exception& ex)
|
||||
{
|
||||
forceLog_printf("error when trying to check visiblity of preset: %s", ex.what());
|
||||
cemuLog_log(LogType::Force, "error when trying to check visiblity of preset: {}", ex.what());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -974,7 +974,7 @@ bool GraphicPack2::Activate()
|
|||
}
|
||||
catch(const std::exception& ex)
|
||||
{
|
||||
forceLog_printf((char*)ex.what());
|
||||
cemuLog_log(LogType::Force, ex.what());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -998,11 +998,11 @@ bool GraphicPack2::Activate()
|
|||
if (LatteTiming_getCustomVsyncFrequency(globalCustomVsyncFreq))
|
||||
{
|
||||
if (customVsyncFreq != globalCustomVsyncFreq)
|
||||
forceLog_printf("rules.txt error: Mismatching vsync frequency %d in graphic pack \'%s\'", customVsyncFreq, GetPath().c_str());
|
||||
cemuLog_log(LogType::Force, "rules.txt error: Mismatching vsync frequency {} in graphic pack \'{}\'", customVsyncFreq, GetPath());
|
||||
}
|
||||
else
|
||||
{
|
||||
forceLog_printf("Set vsync frequency to %d (graphic pack %s)", customVsyncFreq, GetPath().c_str());
|
||||
cemuLog_log(LogType::Force, "Set vsync frequency to {} (graphic pack {})", customVsyncFreq, GetPath());
|
||||
LatteTiming_setCustomVsyncFrequency(customVsyncFreq);
|
||||
}
|
||||
}
|
||||
|
@ -1255,4 +1255,4 @@ std::vector<std::pair<MPTR, MPTR>> GraphicPack2::GetActiveRAMMappings()
|
|||
return a.first < b.first;
|
||||
});
|
||||
return v;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue