Silence logging of cellScreenShot

This commit is contained in:
Eladash 2024-03-26 11:06:59 +02:00 committed by Elad Ashkenazi
parent 9245565085
commit 4dff8b16f1
2 changed files with 12 additions and 5 deletions

View File

@ -134,24 +134,31 @@ error_code cellScreenShotSetOverlayImage(vm::cptr<char> srcDir, vm::cptr<char> s
error_code cellScreenShotEnable()
{
cellScreenshot.warning("cellScreenShotEnable()");
cellScreenshot.trace("cellScreenShotEnable()");
auto& manager = g_fxo->get<screenshot_manager>();
std::lock_guard lock(manager.mutex);
manager.is_enabled = true;
if (!std::exchange(manager.is_enabled, true))
{
cellScreenshot.warning("cellScreenShotEnable(): Enabled");
}
return CELL_OK;
}
error_code cellScreenShotDisable()
{
cellScreenshot.warning("cellScreenShotDisable()");
cellScreenshot.trace("cellScreenShotDisable()");
auto& manager = g_fxo->get<screenshot_manager>();
std::lock_guard lock(manager.mutex);
manager.is_enabled = false;
if (std::exchange(manager.is_enabled, false))
{
cellScreenshot.warning("cellScreenShotDisable(): Disabled");
}
return CELL_OK;
}

View File

@ -220,7 +220,7 @@ u64 get_guest_system_time(u64 time)
// Functions
error_code sys_time_get_timezone(vm::ptr<s32> timezone, vm::ptr<s32> summertime)
{
sys_time.notice("sys_time_get_timezone(timezone=*0x%x, summertime=*0x%x)", timezone, summertime);
sys_time.trace("sys_time_get_timezone(timezone=*0x%x, summertime=*0x%x)", timezone, summertime);
#ifdef _WIN32
TIME_ZONE_INFORMATION tz{};