MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / IsCustomPlaylist

Method IsCustomPlaylist

src/music_gui.cpp:316–319  ·  view source on GitHub ↗

Is one of the custom playlists selected? */

Source from the content-addressed store, hash-verified

314
315/** Is one of the custom playlists selected? */
316bool MusicSystem::IsCustomPlaylist() const
317{
318 return (this->selected_playlist == PLCH_CUSTOM1) || (this->selected_playlist == PLCH_CUSTOM2);
319}
320
321/**
322 * Append a song to a custom playlist.

Callers 3

PlaylistAddMethod · 0.95
PlaylistRemoveMethod · 0.95
PlaylistClearMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected