Those are the version strings of the quicksave file format, and replay file format. They get inserted at the beginning of quicksave and replay files, respectively. Their function is to check whether the formats are compatible, e.g. in load_replay():Norbert wrote:replay.c:const char replay_version[] = "V1.16b3 ";
seg000.c:const char quick_version[] = "V1.16b4 ";
Code: Select all
fread(replay_control, COUNT(replay_control), 1, replay_fp);
if (strcmp(replay_control, replay_version) != 0) {
printf("Warning: unexpected replay format!\n");
}
fread(quick_control, COUNT(quick_control), 1, replay_fp);
if (strcmp(quick_control, quick_version) != 0) {
printf("Warning: unexpected savestate format!\n");
}
Speaking of replays, I added an "issue" about replays:
https://github.com/NagyD/SDLPoP/issues/91
That happened here:Norbert wrote:Just something I noticed: the main branch does not ask if improvements should be enabled.
https://github.com/NagyD/SDLPoP/pull/69 ... b8a7b54a1f
My reasoning at the time (from the commit notes:)
The gameplay for many levelsets may benefit from SDLPoP's bug fixes - however, many mods were also designed to be played without the fixes (and many trick mods even rely on the glitches). So whether or not to enable fixes can probably be thought of as a "design decision" by the mod maker? And as each custom levelset can now just use a customized "mod.ini" to easily override this setting, perhaps it isn't really helpful anymore to directly ask the player whether to enable fixes. Because people do tend to expect the original behavior (I think), it probably makes sense to make the default setting "false". Plus, older levelsets without an added mod.ini will then work exactly as expected, by default at least.