mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-03-06 14:27:43 +00:00
Changed some log output messages when handling the %INJECT% variable on game launch.
This commit is contained in:
parent
d88143bbed
commit
787164b438
|
@ -1353,8 +1353,7 @@ void FileData::launchGame()
|
||||||
#endif
|
#endif
|
||||||
if (Utils::FileSystem::isRegularFile(injectFile) ||
|
if (Utils::FileSystem::isRegularFile(injectFile) ||
|
||||||
Utils::FileSystem::isSymlink(injectFile)) {
|
Utils::FileSystem::isSymlink(injectFile)) {
|
||||||
LOG(LogDebug) << "FileData::launchGame(): Injecting arguments from file \""
|
LOG(LogDebug) << "FileData::launchGame(): Injecting from file \"" << injectFile << "\"";
|
||||||
<< injectFile << "\"";
|
|
||||||
std::string arguments;
|
std::string arguments;
|
||||||
std::ifstream injectFileStream;
|
std::ifstream injectFileStream;
|
||||||
injectFileStream.open(injectFile);
|
injectFileStream.open(injectFile);
|
||||||
|
@ -1368,16 +1367,17 @@ void FileData::launchGame()
|
||||||
}
|
}
|
||||||
else if (arguments.size() > 4096) {
|
else if (arguments.size() > 4096) {
|
||||||
LOG(LogWarning)
|
LOG(LogWarning)
|
||||||
<< "FileData::launchGame(): Arguments file exceeding maximum allowed size of "
|
<< "FileData::launchGame(): Injection file exceeding maximum allowed size of "
|
||||||
"4096 bytes, skipping injection";
|
"4096 bytes, skipping \""
|
||||||
|
<< injectFile << "\"";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
command.insert(injectPos, arguments + " ");
|
command.insert(injectPos, arguments + " ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
LOG(LogDebug) << "FileData::launchGame(): Arguments file \"" << injectFile
|
LOG(LogDebug) << "FileData::launchGame(): File \"" << injectFile
|
||||||
<< "\" does not exist, skipping injection";
|
<< "\" does not exist, nothing to inject";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue