Attempt to fix music replacement definitions again

Store per-map music replacements in a TMap, and perform the replacements after parsing the MAPINFO
This commit is contained in:
Kevin Caccamo 2021-09-05 14:35:10 -04:00 committed by Christoph Oelckers
parent f675adebbd
commit 2297c9351a
4 changed files with 24 additions and 1 deletions

View file

@ -209,6 +209,8 @@ struct SummaryInfo
extern GlobalCutscenes globalCutscenes;
extern MapRecord *currentLevel;
void SetMusicReplacement(const char *mapname, const char *music);
void ReplaceMusics(bool namehack = false);
bool SetMusicForMap(const char* mapname, const char* music, bool namehack = false);
MapRecord *FindMapByName(const char *nm);