18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-03 06:35:21 +01:00

fix(files): the files found in another case are counted, and listed only with logs.filecase

These files load fine since #362, so a run no longer gets a log line for each of them. It gets one line with their
count when the game closes, none when there are none; "logs.filecase yes" in eu07.ini logs each name, once, as before.

- The count is written at the closing, as it covers the whole run: the vehicles, sounds and textures loaded after the
  scenery count too, which a line at the end of loading would miss.
- An eu07.ini key rather than a log type of its own: logs.filter sets all the types at once, so a type off by default
  would come on for anyone with "logs.filter 0".
- On Windows nothing is found in another case, so nothing is counted or logged.
This commit is contained in:
jerrrrycho
2026-11-25 11:34:26 +01:00
parent 67a7e3876c
commit 77affa28d5
6 changed files with 91 additions and 8 deletions
+3
View File
@@ -922,6 +922,9 @@ void eu07_application::exit()
auto const step = [closing](char const *What) {
WriteLog(std::format("Closing: {} at {} ms", What, std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::steady_clock::now() - closing).count()));
};
// the files found in another case, counted over the whole run: the vehicles, sounds and textures loaded after the scenery
// count as well as those loaded with it
LogFilesInAnotherCase();
step("the sleepers laid in the background");
// the sleepers laid in the background read the scenery, which goes below
track_sleepers::stop_background();