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:
parent
e8872b09e5
commit
636c069403
5 changed files with 29 additions and 7 deletions
|
@ -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 = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue