1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Load sound file from 2nd CD.

This commit is contained in:
Frank Zago 2011-08-07 21:37:07 +00:00
parent de0d6b8c17
commit c1ffe738f0
2 changed files with 9 additions and 4 deletions

View File

@ -16,9 +16,10 @@
# unrar: sudo apt-get install unrar
# Data files needed:
# data1.cab and data1.hdr from the original CDROM
# data1.cab and data1.hdr from the original 1st CDROM
# Heroes3.snd from the original 2nd CDROM
# the WoG release v3.58f: allinone_358f.zip
# the VCMI distribution: vcmi_085.zip
# the VCMI distribution: vcmi_085b.rar
# Usage: put this script and the 4 data files into the same directory
# and run the script.
@ -60,6 +61,8 @@ find . -name "*.ASI" | xargs rm -f
mv Program_Files/* $DESTDIR
cd ..
# Copy Heroes3.snd from 2nd CDROM and rename it to avoid a name conflict.
cp Heroes3.snd $DESTDIR/Data/Heroes3-cd2.snd
# Extract Data from WoG
# 39753248 allinone_358f.zip
@ -106,7 +109,8 @@ rm -rf temp
mkdir temp
cd temp
unzip ../vcmi_085.zip
#unzip ../vcmi_085.zip
unrar ../vcmi_085b.rar
find . -name "*.dll" | xargs rm -f
find . -name "*.DLL" | xargs rm -f

View File

@ -75,7 +75,7 @@ CSoundHandler::CSoundHandler()
// Vectors for helper(s)
pickupSounds += soundBase::pickup01, soundBase::pickup02, soundBase::pickup03,
soundBase::pickup04, soundBase::pickup05, soundBase::pickup06, soundBase::pickup07;
horseSounds += // must be the same order as terrains (see EtrrainType);
horseSounds += // must be the same order as terrains (see EterrainType);
soundBase::horseDirt, soundBase::horseSand, soundBase::horseGrass,
soundBase::horseSnow, soundBase::horseSwamp, soundBase::horseRough,
soundBase::horseSubterranean, soundBase::horseLava,
@ -89,6 +89,7 @@ void CSoundHandler::init()
if (initialized) {
// Load sounds
sndh.add_file(std::string(DATA_DIR "/Data/Heroes3.snd"));
sndh.add_file(std::string(DATA_DIR "/Data/Heroes3-cd2.snd"));
sndh.add_file(std::string(DATA_DIR "/Data/H3ab_ahd.snd"));
}
}