dsda: fix 3 missing params for boom demos

the rest may have to be implemented in the first place, like initial seed
This commit is contained in:
feos 2025-05-20 23:25:22 +03:00
parent b2c33aa548
commit e1374d27d2
1 changed files with 11 additions and 9 deletions

View File

@ -179,7 +179,17 @@ namespace BizHawk.Client.Common
episode = input[i++];
map = input[i++];
multiplayerMode = (DSDA.MultiplayerMode) input[i++];
i++; // DisplayPlayer is a non-sync setting so importers can't set it
i++; // DisplayPlayer is a non-sync setting so importers can't set it
i += 6; // skip settings we can't parse yet
monstersRespawn = input[i++] is not 0;
fastMonsters = input[i++] is not 0;
noMonsters = input[i++] is not 0;
var optionsSize = compLevel == DSDA.CompatibilityLevel.MBF21 ? 21 + 25 : 64;
i += optionsSize - 9; // subtract the options we already parsed
if (version == DemoVersion.Boom_2_00)
i += 256 - optionsSize;
}
DSDA.DoomSyncSettings syncSettings = new()
@ -197,14 +207,6 @@ namespace BizHawk.Client.Common
RenderWipescreen = false,
};
if (version >= DemoVersion.Boom_2_00)
{
var optionsSize = compLevel == DSDA.CompatibilityLevel.MBF21 ? 21 + 25 : 64;
i += optionsSize;
if (version == DemoVersion.Boom_2_00)
i += 256 - optionsSize;
}
syncSettings.Player1Present = input[i++] is not 0;
syncSettings.Player2Present = input[i++] is not 0;
syncSettings.Player3Present = input[i++] is not 0;