1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-12-25 14:15:46 +00:00

Little stringbank localization improvement

This commit is contained in:
fgenesis 2012-06-15 18:29:17 +02:00
parent b719b8fd60
commit 6bd5caf4fa

View file

@ -28,6 +28,12 @@ void StringBank::load()
{
stringMap.clear();
// First, load the default string banks
_load("data/stringbank.txt");
if (dsq->mod.isActive())
_load(dsq->mod.getPath() + "stringbank.txt");
// Then, load localized ones. If some entries in these are missing, the default for each is taken.
std::string fname = dsq->user.localisePath("data/stringbank.txt");
_load(fname);