MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / makeCustomSelectionPlaylist

Function makeCustomSelectionPlaylist

src/OpenLoco/src/Jukebox.cpp:160–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158 }
159
160 static std::vector<MusicId> makeCustomSelectionPlaylist()
161 {
162 auto playlist = std::vector<MusicId>();
163
164 const auto& cfg = Config::get().audio;
165 for (auto i = 0; i < kNumMusicTracks; i++)
166 {
167 if (cfg.customJukebox[i] & 1)
168 {
169 playlist.push_back(i);
170 }
171 }
172
173 return playlist;
174 }
175
176 std::vector<MusicId> makeSelectedPlaylist()
177 {

Callers 1

makeSelectedPlaylistFunction · 0.85

Calls 2

push_backMethod · 0.80
getFunction · 0.70

Tested by

no test coverage detected