aboutsummaryrefslogtreecommitdiff
path: root/views/script/game_music.js
blob: 29b00da86962272728e66f57b6e77e762760e4fe (plain)
1
2
3
4
5
6
7
8
9
10
startHooks.push(() => {
    if (require('@electron/remote').getCurrentWindow().music) {
        info("MusicMgr", "Playing game" + i + ".mp3");
        require('electron').ipcRenderer.send('newmusic', kresources.music['game' + i].file);
    }
})

if (location.search === "?online") {
    require('electron').ipcRenderer.send('newmusic', kresources.music['prepare'].file);
}