1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-12-29 00:05:50 +00:00

Allow loading eats.txt from mods

Thx Daxar for pointing out this was forgotten.
This commit is contained in:
fgenesis 2015-03-16 03:48:20 +01:00
parent 9973afbac6
commit 66cf20ffa9

View file

@ -1368,7 +1368,19 @@ void Continuity::loadEatBank()
{
eats.clear();
InStream inf("data/eats.txt");
std::string file;
bool found = false;
if (dsq->mod.isActive())
{
file = dsq->mod.getPath() + "eats.txt";
if(exists(file))
found = true;
}
if(!found)
file = "data/eats.txt";
InStream inf(file.c_str());
EatData curData;
std::string read;