/// @description

global.music = !global.music;
if (global.music) {
	audio_play_sound(snd_mainMenu, 0, false);
} else {
	audio_stop_sound(snd_mainMenu);
}
if (global.sound) {
	audio_play_sound(snd_click, 0, false);
}

ini_open(FILE_CONFIG);
ini_write_real("SYSTEM", "music", global.music);
ini_close();