18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-19 19:14:59 +01:00

fix(simulation): a test doesn't read the player's own eu07.ini

The simulator reads eu07.ini from %APPDATA%/MaSzyna (~/.config/MaSzyna on Linux)
when there is one, in place of the game folder's. A test run then depended on
whose machine it ran on. With --test only the game folder's eu07.ini is read,
then the files given with -ini. The test mode options are taken from the command
line before the settings for that; --test-timeout still wins over test.timeout
of any settings file.
This commit is contained in:
jerrrrycho
2026-11-08 11:21:57 +01:00
parent baf6bc2a20
commit 7f8892cda6
3 changed files with 18 additions and 12 deletions

View File

@@ -62,7 +62,8 @@ EXIT_RESULTS = {
14: "error",
}
# settings layered over the user's eu07.ini for a test run; the window ones only matter
# settings layered over the game's eu07.ini for a test run (test mode doesn't read the player's own
# in %APPDATA%); the window ones only matter
# with --watch, test mode keeps its window hidden and turns the sound off by itself
TEST_INI = """\
fullscreen no