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

Function enableMusic

src/OpenLoco/src/Jukebox.cpp:297–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295 }
296
297 bool enableMusic()
298 {
299 auto& cfg = Config::get().audio;
300
301 if (cfg.playJukeboxMusic != 0)
302 {
303 return false;
304 }
305
306 cfg.playJukeboxMusic = 1;
307 Config::write();
308
309 return true;
310 }
311
312 void resetJukebox()
313 {

Callers 2

audioMenuDropdownFunction · 0.85
playMusicFunction · 0.85

Calls 2

writeFunction · 0.85
getFunction · 0.70

Tested by

no test coverage detected