1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-15 11:00:46 +00:00

Move localisation code to BBGE, and allow textures to be localised.

This commit is contained in:
fgenesis 2012-07-10 22:16:48 +02:00
commit 7b2fa39428
12 changed files with 174 additions and 153 deletions

View file

@ -485,7 +485,7 @@ void DSQ::loadFonts()
destroyFonts();
std::string file = user.localisePath("data/font-small.glf");
std::string file = localisePath("data/font-small.glf");
font.load(file, 1, false);
font.fontTopColor = Vector(0.9,0.9,1);
@ -513,7 +513,7 @@ void DSQ::loadFonts()
goldFont.overrideTexture = core->addTexture("font");
file = user.localisePath("data/font.ttf");
file = localisePath("data/font.ttf");
debugLog("ttf...");
arialFontData = (unsigned char *)readFile(file, &arialFontDataSize);