From 787164b438f0ade48c77c435fb5008bc4eb1509e Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Tue, 7 Mar 2023 18:02:04 +0100 Subject: [PATCH] Changed some log output messages when handling the %INJECT% variable on game launch. --- es-app/src/FileData.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/es-app/src/FileData.cpp b/es-app/src/FileData.cpp index 6b3d42688..c100adc85 100644 --- a/es-app/src/FileData.cpp +++ b/es-app/src/FileData.cpp @@ -1353,8 +1353,7 @@ void FileData::launchGame() #endif if (Utils::FileSystem::isRegularFile(injectFile) || Utils::FileSystem::isSymlink(injectFile)) { - LOG(LogDebug) << "FileData::launchGame(): Injecting arguments from file \"" - << injectFile << "\""; + LOG(LogDebug) << "FileData::launchGame(): Injecting from file \"" << injectFile << "\""; std::string arguments; std::ifstream injectFileStream; injectFileStream.open(injectFile); @@ -1368,16 +1367,17 @@ void FileData::launchGame() } else if (arguments.size() > 4096) { LOG(LogWarning) - << "FileData::launchGame(): Arguments file exceeding maximum allowed size of " - "4096 bytes, skipping injection"; + << "FileData::launchGame(): Injection file exceeding maximum allowed size of " + "4096 bytes, skipping \"" + << injectFile << "\""; } else { command.insert(injectPos, arguments + " "); } } else { - LOG(LogDebug) << "FileData::launchGame(): Arguments file \"" << injectFile - << "\" does not exist, skipping injection"; + LOG(LogDebug) << "FileData::launchGame(): File \"" << injectFile + << "\" does not exist, nothing to inject"; } }