mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-11-23 04:51:56 +00:00
7d2bda07a3
idSessionLocal::SaveGame() uses saveName for both the description in savegames/bla.txt and the filename itself ("bla" in this case), which is a "scrubbed" version of that string ("file extension" removed, problematic chars replaced with '_'). In case of Autosaves, MoveToNewMap() passes a translated name of the map as saveName, which makes sense for the description, but not so much for the filename. In Spanish the Alpha Labs names are like "LAB. ALFA 1", "LAB. ALFA 2" .. and everything after "LAB" is cut off as a file extension - so every autosave of an Alpha Labs part overwrites the last one, as they all get the same name... The solution is to pass an additional (optional) argument saveFileName to idSessionLocal::SaveGame(), and for autosaves pass the mapname (which is the filename without .map; yes, it might contain slashes, but the scrubber will turn them into _) instead of the translated name as saveFileName. |
||
---|---|---|
.. | ||
cm | ||
d3xp | ||
framework | ||
game | ||
idlib | ||
MayaImport | ||
renderer | ||
sound | ||
sys | ||
tools | ||
TypeInfo | ||
ui | ||
CMakeLists.txt | ||
config.h.in | ||
mmakefile.src |