Kill MODID

SRB2APPLICATION has replaced all of its uses in the modern Master Server, let's not keep this old cruft around. Exposed to Lua as "APPLICATION", in all caps.
This commit is contained in:
Sally Coolatta 2024-04-05 11:31:48 -04:00
parent e19ed5bc29
commit c157acf9be
3 changed files with 5 additions and 2 deletions

View file

@ -5178,7 +5178,7 @@ static void Command_Version_f(void)
#ifdef UPDATE_ALERT #ifdef UPDATE_ALERT
static void Command_ModDetails_f(void) static void Command_ModDetails_f(void)
{ {
CONS_Printf(M_GetText("Mod ID: %d\nMod Version: %d\nCode Base:%d\n"), MODID, MODVERSION, CODEBASE); CONS_Printf(M_GetText("Mod App Name: %s\nMod Version: %d\nCode Base:%d\n"), SRB2APPLICATION, MODVERSION, CODEBASE);
} }
#endif #endif

View file

@ -4479,7 +4479,6 @@ struct int_const_s const INT_CONST[] = {
{"MUSICRATE",MUSICRATE}, {"MUSICRATE",MUSICRATE},
{"RING_DIST",RING_DIST}, {"RING_DIST",RING_DIST},
{"PUSHACCEL",PUSHACCEL}, {"PUSHACCEL",PUSHACCEL},
{"MODID",MODID}, // I don't know, I just thought it would be cool for a wad to potentially know what mod it was loaded into.
{"MODVERSION",MODVERSION}, // or what version of the mod this is. {"MODVERSION",MODVERSION}, // or what version of the mod this is.
{"CODEBASE",CODEBASE}, // or what release of SRB2 this is. {"CODEBASE",CODEBASE}, // or what release of SRB2 this is.
{"NEWTICRATE",NEWTICRATE}, // TICRATE*NEWTICRATERATIO {"NEWTICRATE",NEWTICRATE}, // TICRATE*NEWTICRATERATIO

View file

@ -336,6 +336,10 @@ int LUA_PushGlobals(lua_State *L, const char *word)
} else if (fastcmp(word,"VERSIONSTRING")) { } else if (fastcmp(word,"VERSIONSTRING")) {
lua_pushstring(L, VERSIONSTRING); lua_pushstring(L, VERSIONSTRING);
return 1; return 1;
} else if (fastcmp(word,"APPLICATION")) {
// I don't know, I just thought it would be cool for a wad to potentially know what mod it was loaded into.
lua_pushstring(L, SRB2APPLICATION);
return 1;
} else if (fastcmp(word,"gamespeed")) { } else if (fastcmp(word,"gamespeed")) {
lua_pushinteger(L, gamespeed); lua_pushinteger(L, gamespeed);
return 1; return 1;