mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-08-05 22:00:19 +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();
|
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;
|
EatData curData;
|
||||||
std::string read;
|
std::string read;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue