Unpack Music.ocg in Windows installer.

Currently, all music pieces are kept in memory to avoid random group access, which is a bit excessive for the larger music pack. This change will allow runtime music loads without too much delay.
lights3
Sven Eberhardt 2015-08-30 15:12:34 -04:00
parent 49a3dd56cd
commit c588fe79c9
1 changed files with 4 additions and 0 deletions

View File

@ -234,6 +234,10 @@ Section
; Do this after the other installation tasks so everything is in order if the user cancels during downloading.
Call MusicPackDownload
Call MusicPackInstall
; Unpack Music.ocg for faster music switching (regardless if it's the regular or the extended pack)
DetailPrint "Unpacking Music file..."
ExecShell "open" "$INSTDIR\c4group.exe" "Music.ocg -u" SW_HIDE
SectionEnd