From 6805c360048950b5521efdc0c9223405c2940e62 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Fri, 17 Jan 2025 00:25:18 +0100 Subject: [PATCH] Decrease log level of config file move error --- rpcs3/Emu/System.cpp | 2 +- rpcs3/Emu/games_config.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/System.cpp b/rpcs3/Emu/System.cpp index 179eb7f1ad..cb31823026 100644 --- a/rpcs3/Emu/System.cpp +++ b/rpcs3/Emu/System.cpp @@ -417,7 +417,7 @@ void Emulator::Init() if (!fs::rename(old_path, cfg_path, false)) { - sys_log.error("Failed to move '%s' to '%s' (error='%s')", old_path, cfg_path, fs::g_tls_error); + (fs::g_tls_error == fs::error::exist ? sys_log.warning : sys_log.error)("Failed to move '%s' to '%s' (error='%s')", old_path, cfg_path, fs::g_tls_error); } } #endif diff --git a/rpcs3/Emu/games_config.cpp b/rpcs3/Emu/games_config.cpp index 27c086abdf..cfa43f6e15 100644 --- a/rpcs3/Emu/games_config.cpp +++ b/rpcs3/Emu/games_config.cpp @@ -159,7 +159,7 @@ void games_config::load() if (!fs::rename(old_path, path, false)) { - cfg_log.error("Failed to move '%s' to '%s' (error='%s')", old_path, path, fs::g_tls_error); + (fs::g_tls_error == fs::error::exist ? cfg_log.warning : cfg_log.error)("Failed to move '%s' to '%s' (error='%s')", old_path, path, fs::g_tls_error); } } #endif