mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
Log savegame compression format used at debug level sl 3
This commit is contained in:
parent
edeced8fce
commit
a7ed477185
@ -3096,6 +3096,8 @@ static SaveOrLoadResult SaveFileToDisk(bool threaded)
|
||||
byte compression;
|
||||
const SaveLoadFormat *fmt = GetSavegameFormat(_savegame_format, &compression, _sl.save_flags);
|
||||
|
||||
DEBUG(sl, 3, "Using compression format: %s, level: %u", fmt->name, compression);
|
||||
|
||||
/* We have written our stuff to memory, now write it to file! */
|
||||
uint32 hdr[2] = { fmt->tag, TO_BE32((uint32) (SAVEGAME_VERSION | SAVEGAME_VERSION_EXT) << 16) };
|
||||
_sl.sf->Write((byte*)hdr, sizeof(hdr));
|
||||
|
Loading…
Reference in New Issue
Block a user