mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-08-11 16:59:53 +00:00
Multi-language patch by Henrik Holst
This commit is contained in:
parent
0fbd5d81ae
commit
2278e55d0c
7 changed files with 132 additions and 18 deletions
|
@ -3209,15 +3209,20 @@ void Continuity::reset()
|
|||
ingredientData.clear();
|
||||
recipes.clear();
|
||||
|
||||
std::string fname;
|
||||
|
||||
if(dsq->mod.isActive())
|
||||
{
|
||||
//load mod ingredients
|
||||
loadIngredientData(dsq->mod.getPath() + "ingredients.txt");
|
||||
fname = dsq->user.localisePath(dsq->mod.getPath() + "ingredients.txt", dsq->mod.getPath());
|
||||
loadIngredientData(fname);
|
||||
}
|
||||
|
||||
//load ingredients for the main game
|
||||
if(ingredientData.empty() && recipes.empty())
|
||||
loadIngredientData("data/ingredients.txt");
|
||||
if(ingredientData.empty() && recipes.empty()) {
|
||||
fname = dsq->user.localisePath("data/ingredients.txt");
|
||||
loadIngredientData(fname);
|
||||
}
|
||||
|
||||
loadPetData();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue