MCPcopy Create free account
hub / github.com/ZDoom/Raze / ReplaceMusics

Function ReplaceMusics

source/core/mapinfo.cpp:177–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177void ReplaceMusics(bool namehack)
178{
179 TMap<FString, FString>::Iterator it(musicReplacements);
180 TMap<FString, FString>::Pair* pair;
181 while (it.NextPair(pair))
182 {
183 FString mapname = pair->Key;
184 FString music = pair->Value;
185 SetMusicForMap(mapname.GetChars(), music.GetChars(), namehack);
186 }
187 musicReplacements.Clear();
188}
189
190bool SetMusicForMap(const char* mapname, const char* music, bool namehack)
191{

Callers 1

RunGameFunction · 0.85

Calls 4

SetMusicForMapFunction · 0.85
NextPairMethod · 0.45
GetCharsMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected