1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-17 20:09:35 +00:00

_mods/x/locales/y/* now works

This commit is contained in:
fgenesis 2012-07-14 15:00:37 +02:00
commit 636c069403
5 changed files with 29 additions and 7 deletions

View file

@ -98,6 +98,8 @@ void Mod::load(const std::string &p)
name = p;
path = baseModPath + p + "/";
setLocalisationModPath(path);
setActive(true);
TiXmlDocument d;
@ -138,11 +140,7 @@ void Mod::load(const std::string &p)
}
}
#if defined(BBGE_BUILD_UNIX)
dsq->secondaryTexturePath = path + "graphics/";
#else
dsq->secondaryTexturePath = "./" + path + "graphics/";
#endif
dsq->sound->audioPath2 = path + "audio/";
dsq->sound->setVoicePath2(path + "audio/");
@ -250,6 +248,7 @@ void Mod::setActive(bool a)
{
if (!active)
{
setLocalisationModPath("");
name = path = "";
dsq->secondaryTexturePath = "";
dsq->sound->audioPath2 = "";