Harsher replay menu

Don't allow loading demos with invalid file lists at all. If you insist on doing this, it has to be done from the command line now.
This commit is contained in:
Sally Coolatta 2023-07-25 09:34:55 -04:00
parent f99cf91d3d
commit dded352293
2 changed files with 13 additions and 1 deletions

View file

@ -1444,7 +1444,7 @@ void G_BeginRecording(void)
// file list
m = demo_p;/* file count */
demo_p += 1;
demo_p += 2;
totalfiles = 0;
for (i = mainwads; ++i < numwadfiles; )

View file

@ -10545,23 +10545,35 @@ static void M_ReplayTimeAttack(INT32 choice)
break;
case DFILE_ERROR_OUTOFORDER:
/*
demofileoverride = DFILE_OVERRIDE_SKIP;
M_StartMessage(M_GetText("Add-ons for this replay\nwere loaded out of order.\n\nAttempt to playback anyway?\n\n(Press 'Y' to confirm)\n"), M_StartTimeAttackReplay, MM_YESNO);
*/
M_StartMessage(M_GetText("Add-ons for this replay\nwere loaded out of order.\n\n(Press a key)\n"), NULL, MM_NOTHING);
break;
case DFILE_ERROR_INCOMPLETEOUTOFORDER:
/*
demofileoverride = DFILE_OVERRIDE_LOAD;
M_StartMessage(M_GetText("Add-ons for this replay\nhave not been loaded,\nand some are in the wrong order.\n\nAttempt to load files?\n\n(Press 'Y' to confirm)\n"), M_StartTimeAttackReplay, MM_YESNO);
*/
M_StartMessage(M_GetText("Add-ons for this replay\nhave not been loaded,\nand some are in the wrong order.\n\n(Press a key)\n"), NULL, MM_NOTHING);
break;
case DFILE_ERROR_CANNOTLOAD:
/*
demofileoverride = DFILE_OVERRIDE_SKIP;
M_StartMessage(M_GetText("Add-ons for this replay\ncould not be loaded.\n\nAttempt to playback anyway?\n\n(Press 'Y' to confirm)\n"), M_StartTimeAttackReplay, MM_YESNO);
*/
M_StartMessage(M_GetText("Add-ons for this replay\ncould not be loaded.\n\n(Press a key)\n"), NULL, MM_NOTHING);
break;
case DFILE_ERROR_EXTRAFILES:
/*
demofileoverride = DFILE_OVERRIDE_SKIP;
M_StartMessage(M_GetText("You have more files loaded\nthan the replay does.\n\nAttempt to playback anyway?\n\n(Press 'Y' to confirm)\n"), M_StartTimeAttackReplay, MM_YESNO);
*/
M_StartMessage(M_GetText("You have more files loaded\nthan the replay does.\n\n(Press a key)\n"), NULL, MM_NOTHING);
break;
}