From d1ba4c61d73e28a6b762adeb82e0ef783966147d Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 24 Apr 2025 06:56:35 +0200 Subject: [PATCH] deprecate "addskins" command "addskins" is an incredibly ambigous name since its main purpose was to add skins LOCALLY just prints a notice for now since there may be ppl that still use it --- src/d_netcmd.c | 35 +++-------------------------------- src/p_setup.c | 11 ----------- src/p_setup.h | 2 +- 3 files changed, 4 insertions(+), 44 deletions(-) diff --git a/src/d_netcmd.c b/src/d_netcmd.c index e095bad38..fe0aaf513 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -4459,7 +4459,7 @@ static void Command_Addfilelocal(void) // Add any wad file, ignoring checks for if it contains complex things like // lua. Great for complex but client-side customizations, like different // level cards or anything like that. - P_AddWadFileLocal(fn); + P_AddWadFile(fn, true); } @@ -4554,38 +4554,9 @@ static void Command_Addfile(void) /** Adds something at runtime. */ -static void -Command_Addskins (void) +static void Command_Addskins(void) { - if (COM_Argc() > 3) - { - CONS_Printf( - "addskins : Load a skin file.\n"); - return; - } - // no forcing? - /* - if (fasticmp(COM_Argv(2), "-force") || fasticmp(COM_Argv(2), "-f")) { - CONS_Alert(CONS_NOTICE, M_GetText("Adding file %s. May or may not be a skin.\n"), COM_Argv(1)); - P_AddWadFile(COM_Argv(1), 0, true); - } else { - if (DumbStartsWith("KC_", COM_Argv(1))) { - P_AddWadFile(COM_Argv(1), 0, true); - } else if (DumbStartsWith("KCL_", COM_Argv(1))) { - if (!demo.playback) { - CONS_Alert(CONS_ERROR, M_GetText("Cannot add file %s as it is a skin with lua. Include -force or -f to force it to load.\n"), COM_Argv(1)); - return; - } else { - */ - P_AddWadFile(COM_Argv(1), true); - /* - } - } else { - CONS_Alert(CONS_ERROR, M_GetText("Cannot add file %s as it is not a skin.\n"), COM_Argv(1)); - return; - } - } - */ + CONS_Printf("addskins has been deprecated\nuse addfilelocal instead!\n"); } static void Command_GLocalSkin (void) diff --git a/src/p_setup.c b/src/p_setup.c index d23fc1cbf..4238347c4 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -3246,17 +3246,6 @@ boolean P_AddWadFile(const char *wadfilename, boolean local) return true; } -boolean P_AddWadFileLocal(const char *wadfilename) -{ - UINT16 wadnum; - - if ((wadnum = P_PartialAddWadFile(wadfilename, true)) == UINT16_MAX) - return false; - - P_MultiSetupWadFiles(true); - return true; -} - // check for replacement votescreen backgrounds boolean wideracereplaced = false; boolean racereplaced = false; diff --git a/src/p_setup.h b/src/p_setup.h index 723b48d18..f0ae13e6c 100644 --- a/src/p_setup.h +++ b/src/p_setup.h @@ -65,8 +65,8 @@ boolean P_SetupLevel(boolean fromnetsave, boolean reloadinggamestate); #ifdef HWRENDER void HWR_LoadLevel(void); #endif + boolean P_AddWadFile(const char *wadfilename, boolean local); -boolean P_AddWadFileLocal(const char *wadfilename); extern boolean wideracereplaced; extern boolean racereplaced;