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:
parent
9973afbac6
commit
66cf20ffa9
1 changed files with 13 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue