From c588fe79c93c24a25ab1967a473f91a64e7aeb70 Mon Sep 17 00:00:00 2001 From: Sven Eberhardt Date: Sun, 30 Aug 2015 15:12:34 -0400 Subject: [PATCH] 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. --- tools/install/oc.nsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/install/oc.nsi b/tools/install/oc.nsi index db3515478..84c9938b9 100644 --- a/tools/install/oc.nsi +++ b/tools/install/oc.nsi @@ -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