Skip to content

Commit

Permalink
src: Remove support for '-cdrom' option
Browse files Browse the repository at this point in the history
This is completely DOS specific anyway ...

Signed-off-by: Sylvain Munaut <[email protected]>
  • Loading branch information
smunaut committed Jan 17, 2021
1 parent 668382d commit 53c5ab7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
12 changes: 1 addition & 11 deletions src/d_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -880,13 +880,6 @@ void D_DoomMain (void)
if (devparm)
printf(D_DEVSTR);

if (M_CheckParm("-cdrom"))
{
printf(D_CDROM);
mkdir("c:\\doomdata",0);
strcpy (basedefault,"c:/doomdata/default.cfg");
}

// turbo option
if ( (p=M_CheckParm ("-turbo")) )
{
Expand Down Expand Up @@ -1156,10 +1149,7 @@ void D_DoomMain (void)
p = M_CheckParm ("-loadgame");
if (p && p < myargc-1)
{
if (M_CheckParm("-cdrom"))
sprintf(file, "c:\\doomdata\\"SAVEGAMENAME"%c.dsg",myargv[p+1][0]);
else
sprintf(file, SAVEGAMENAME"%c.dsg",myargv[p+1][0]);
sprintf(file, SAVEGAMENAME"%c.dsg",myargv[p+1][0]);
G_LoadGame (file);
}

Expand Down
5 changes: 1 addition & 4 deletions src/g_game.c
Original file line number Diff line number Diff line change
Expand Up @@ -1269,10 +1269,7 @@ void G_DoSaveGame (void)
int length;
int i;

if (M_CheckParm("-cdrom"))
sprintf(name,"c:\\doomdata\\"SAVEGAMENAME"%d.dsg",savegameslot);
else
sprintf (name,SAVEGAMENAME"%d.dsg",savegameslot);
sprintf (name,SAVEGAMENAME"%d.dsg",savegameslot);
description = savedescription;

save_p = savebuffer = screens[1]+0x4000;
Expand Down
5 changes: 1 addition & 4 deletions src/m_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,10 +518,7 @@ void M_ReadSaveStrings(void)

for (i = 0;i < load_end;i++)
{
if (M_CheckParm("-cdrom"))
sprintf(name,"c:\\doomdata\\"SAVEGAMENAME"%d.dsg",i);
else
sprintf(name,SAVEGAMENAME"%d.dsg",i);
sprintf(name,SAVEGAMENAME"%d.dsg",i);

handle = open (name, O_RDONLY | 0, 0666);
if (handle == -1)
Expand Down

0 comments on commit 53c5ab7

Please sign in to comment.