mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-04 04:36:21 +00:00
musicwads
Record number of music files which we were able to add, so Addons menu shows the correct number of addons loaded. Also marks main music files in `listwad` command.
This commit is contained in:
parent
6fee220c79
commit
90591942ad
5 changed files with 7 additions and 2 deletions
|
|
@ -1208,7 +1208,10 @@ static void IdentifyVersion(void)
|
|||
const char *musicpath = va(pandf,srb2waddir,str);\
|
||||
int ms = W_VerifyNMUSlumps(musicpath, false); \
|
||||
if (ms == 1) \
|
||||
{ \
|
||||
D_AddFile(startupiwads, musicpath); \
|
||||
musicwads++; \
|
||||
} \
|
||||
else if (ms == 0) \
|
||||
I_Error("File "str" has been modified with non-music/sound lumps"); \
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4646,7 +4646,7 @@ static void Command_ListWADS_f(void)
|
|||
else if (i <= mainwads)
|
||||
CONS_Printf("\x82 * %.2d\x80: %s\n", i, tempname);
|
||||
else if (!wadfiles[i]->important)
|
||||
CONS_Printf("\x86 %.2d: %s\n", i, tempname);
|
||||
CONS_Printf("\x86 %c %.2d: %s\n", ((i <= mainwads + musicwads) ? '*' : ' '), i, tempname);
|
||||
else
|
||||
CONS_Printf(" %.2d: %s\n", i, tempname);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -132,6 +132,7 @@ struct recorddata_t
|
|||
extern boolean modifiedgame;
|
||||
extern boolean majormods;
|
||||
extern UINT16 mainwads;
|
||||
extern UINT16 musicwads;
|
||||
extern boolean savemoddata; // This mod saves time/emblem data.
|
||||
extern boolean usedCheats;
|
||||
extern boolean imcontinuing; // Temporary flag while continuing
|
||||
|
|
|
|||
|
|
@ -129,6 +129,7 @@ UINT8 numgameovers = 0; // for startinglives balance
|
|||
SINT8 startinglivesbalance[maxgameovers+1] = {3, 5, 7, 9, 12, 15, 20, 25, 30, 40, 50, 75, 99, 0x7F};
|
||||
|
||||
UINT16 mainwads = 0;
|
||||
UINT16 musicwads = 0;
|
||||
boolean modifiedgame = false; // Set if homebrew PWAD stuff has been added.
|
||||
boolean majormods = false; // Set if Lua/Gameplay SOC/replacement map has been added.
|
||||
boolean savemoddata = false;
|
||||
|
|
|
|||
|
|
@ -4602,7 +4602,7 @@ void M_DrawAddons(void)
|
|||
if (modifiedgame)
|
||||
V_DrawSmallScaledPatch(x, y, 0, addonsp[NUM_EXT+2]);
|
||||
|
||||
m = numwadfiles-(mainwads+2+1);
|
||||
m = numwadfiles-(mainwads+musicwads+1);
|
||||
|
||||
V_DrawCenteredString(BASEVIDWIDTH/2, y+4, (majormods ? highlightflags : V_TRANSLUCENT), va("%ld ADD-ON%s LOADED", (long)m, (m == 1) ? "" : "S")); //+2 for music, sounds, +1 for main.kart
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue