|
|
@ -1589,6 +1589,40 @@ void postlogInit()
|
|
|
|
// set the primitive context
|
|
|
|
// set the primitive context
|
|
|
|
CPrimitiveContext::instance().CurrentLigoConfig = &LigoConfig;
|
|
|
|
CPrimitiveContext::instance().CurrentLigoConfig = &LigoConfig;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
H_AUTO(InitRZSound)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!SoundMngr)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
// Init the sound manager
|
|
|
|
|
|
|
|
nmsg = "Initializing sound manager...";
|
|
|
|
|
|
|
|
ProgressBar.newMessage(ClientCfg.buildLoadingString(nmsg));
|
|
|
|
|
|
|
|
if (ClientCfg.SoundOn)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
SoundMngr = new CSoundManager(&ProgressBar);
|
|
|
|
|
|
|
|
try
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
SoundMngr->init(&ProgressBar);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (const Exception &e)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
nlwarning("init : Error when creating 'SoundMngr' : %s", e.what());
|
|
|
|
|
|
|
|
delete SoundMngr;
|
|
|
|
|
|
|
|
SoundMngr = NULL;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (SoundMngr)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
// init the SoundMngr with backuped volume
|
|
|
|
|
|
|
|
SoundMngr->setSFXVolume(ClientCfg.SoundSFXVolume);
|
|
|
|
|
|
|
|
SoundMngr->setGameMusicVolume(ClientCfg.SoundGameMusicVolume);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CPath::memoryCompress(); // Because sound calls addSearchPath
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
H_AUTO(InitRZShIdI)
|
|
|
|
H_AUTO(InitRZShIdI)
|
|
|
|
|
|
|
|
|
|
|
|