mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-02-04 19:04:08 +00:00
Use mods root dir for the files that were in data/ subdir before. Little correction for my prev. patches for compatibility with the iPad version.
This commit is contained in:
parent
b250d4c1bd
commit
0d4e9f33e2
3 changed files with 4 additions and 4 deletions
|
@ -3227,7 +3227,7 @@ void Continuity::reset()
|
||||||
if(dsq->mod.isActive())
|
if(dsq->mod.isActive())
|
||||||
{
|
{
|
||||||
//load mod ingredients
|
//load mod ingredients
|
||||||
loadIngredientData(dsq->mod.getPath() + "data/ingredients.txt");
|
loadIngredientData(dsq->mod.getPath() + "ingredients.txt");
|
||||||
}
|
}
|
||||||
|
|
||||||
//load ingredients for the main game
|
//load ingredients for the main game
|
||||||
|
|
|
@ -30,7 +30,7 @@ void StringBank::load()
|
||||||
|
|
||||||
_load("data/stringbank.txt");
|
_load("data/stringbank.txt");
|
||||||
if (dsq->mod.isActive())
|
if (dsq->mod.isActive())
|
||||||
_load(dsq->mod.getPath() + "data/stringbank.txt");
|
_load(dsq->mod.getPath() + "stringbank.txt");
|
||||||
}
|
}
|
||||||
|
|
||||||
void StringBank::_load(const std::string &file)
|
void StringBank::_load(const std::string &file)
|
||||||
|
|
|
@ -245,7 +245,7 @@ void WorldMap::load()
|
||||||
if (!dsq->mod.isActive())
|
if (!dsq->mod.isActive())
|
||||||
_load("data/worldmap.txt");
|
_load("data/worldmap.txt");
|
||||||
else
|
else
|
||||||
_load(dsq->mod.getPath() + "data/worldmap.txt");
|
_load(dsq->mod.getPath() + "worldmap.txt");
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldMap::_load(const std::string &file)
|
void WorldMap::_load(const std::string &file)
|
||||||
|
@ -272,7 +272,7 @@ void WorldMap::save()
|
||||||
std::string fn;
|
std::string fn;
|
||||||
|
|
||||||
if (dsq->mod.isActive())
|
if (dsq->mod.isActive())
|
||||||
fn = dsq->mod.getPath() + "data/worldmap.txt";
|
fn = dsq->mod.getPath() + "worldmap.txt";
|
||||||
else
|
else
|
||||||
fn = "data/worldmap.txt";
|
fn = "data/worldmap.txt";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue