mirror of
https://github.com/glest/glest-source.git
synced 2025-08-29 19:00:07 +02:00
fix for wrong path used to load overridden intro data
This commit is contained in:
@@ -161,7 +161,7 @@ void CoreData::load() {
|
|||||||
Texture2D *logoTextureExtra= renderer.newTexture2D(rsGlobal);
|
Texture2D *logoTextureExtra= renderer.newTexture2D(rsGlobal);
|
||||||
if(logoTextureExtra) {
|
if(logoTextureExtra) {
|
||||||
logoTextureExtra->setMipmap(true);
|
logoTextureExtra->setMipmap(true);
|
||||||
logoTextureExtra->getPixmap()->load(logosPath + "data/core/menu/textures/" + logo);
|
logoTextureExtra->getPixmap()->load(getGameCustomCoreDataPath(data_path, "") + "data/core/menu/textures/" + logo);
|
||||||
logoTextureList.push_back(logoTextureExtra);
|
logoTextureList.push_back(logoTextureExtra);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -195,7 +195,7 @@ void CoreData::load() {
|
|||||||
Texture2D *logoTextureExtra= renderer.newTexture2D(rsGlobal);
|
Texture2D *logoTextureExtra= renderer.newTexture2D(rsGlobal);
|
||||||
if(logoTextureExtra) {
|
if(logoTextureExtra) {
|
||||||
logoTextureExtra->setMipmap(true);
|
logoTextureExtra->setMipmap(true);
|
||||||
logoTextureExtra->getPixmap()->load(introPath + "data/core/menu/textures/" + logo);
|
logoTextureExtra->getPixmap()->load(getGameCustomCoreDataPath(data_path, "") + "data/core/menu/textures/" + logo);
|
||||||
miscTextureList.push_back(logoTextureExtra);
|
miscTextureList.push_back(logoTextureExtra);
|
||||||
}
|
}
|
||||||
//}
|
//}
|
||||||
|
@@ -169,7 +169,7 @@ Intro::Intro(Program *program):
|
|||||||
string logo = introModels[i];
|
string logo = introModels[i];
|
||||||
Model *model= renderer.newModel(rsMenu);
|
Model *model= renderer.newModel(rsMenu);
|
||||||
if(model) {
|
if(model) {
|
||||||
model->load(introPath + "data/core/menu/main_model/" + logo);
|
model->load(getGameCustomCoreDataPath(data_path, "") + "data/core/menu/main_model/" + logo);
|
||||||
models.push_back(model);
|
models.push_back(model);
|
||||||
//printf("model [%s]\n",model->getFileName().c_str());
|
//printf("model [%s]\n",model->getFileName().c_str());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user