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

Function getSelectedTrackTitleId

src/OpenLoco/src/Jukebox.cpp:66–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 }
65
66 StringId getSelectedTrackTitleId()
67 {
68 if (requestedNextTrack != kNoSong)
69 {
70 return kMusicInfo[requestedNextTrack].titleId;
71 }
72 if (currentTrack != kNoSong)
73 {
74 return kMusicInfo[currentTrack].titleId;
75 }
76 return StringIds::music_none;
77 }
78
79 static void sortPlaylistByTitle(std::vector<uint8_t>& playlist, bool reversed = false)
80 {

Callers 1

prepareDrawFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected