Log output is now flushed before game launch.

This commit is contained in:
Leon Styhre 2022-07-07 18:15:35 +02:00
parent 4971699046
commit 834f8bf1d6

View file

@ -1530,6 +1530,12 @@ void FileData::launchGame()
command = "flatpak-spawn --host " + command; command = "flatpak-spawn --host " + command;
#endif #endif
// Flush the log buffer to es_log.txt, otherwise game launch logging will only be written
// once we have returned from the game.
if (!runInBackground) {
Log::flush();
}
// Possibly keep ES-DE running in the background while the game is launched. // Possibly keep ES-DE running in the background while the game is launched.
#if defined(_WIN64) #if defined(_WIN64)