diff options
Diffstat (limited to 'views/script/game_music.js')
-rw-r--r-- | views/script/game_music.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/views/script/game_music.js b/views/script/game_music.js new file mode 100644 index 0000000..29b00da --- /dev/null +++ b/views/script/game_music.js @@ -0,0 +1,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); +}
\ No newline at end of file |