mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
return gamemode string for unknown IWADs (#1702)
This commit is contained in:
parent
a8e90456fb
commit
b468c19580
10
src/d_iwad.c
10
src/d_iwad.c
@ -46,6 +46,14 @@ static const iwad_t iwads[] = {
|
|||||||
{"rekkrsl.wad", pack_rekkr, retail, "REKKR: Sunken Land" },
|
{"rekkrsl.wad", pack_rekkr, retail, "REKKR: Sunken Land" },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const char *const gamemode_str[] = {
|
||||||
|
"Shareware mode",
|
||||||
|
"Registered mode",
|
||||||
|
"Commercial mode",
|
||||||
|
"Retail mode",
|
||||||
|
"Unknown mode"
|
||||||
|
};
|
||||||
|
|
||||||
// "128 IWAD search directories should be enough for anybody".
|
// "128 IWAD search directories should be enough for anybody".
|
||||||
|
|
||||||
#define MAX_IWAD_DIRS 128
|
#define MAX_IWAD_DIRS 128
|
||||||
@ -872,5 +880,5 @@ const char *D_GetIWADDescription(const char *name, GameMode_t mode,
|
|||||||
return iwads[i].description;
|
return iwads[i].description;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "Unknown";
|
return gamemode_str[mode];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user