mirror of
https://github.com/glest/glest-source.git
synced 2025-09-25 15:09:03 +02:00
fix for bug related with customModTexture and data path (required relative path to texture file in the .ini)
This commit is contained in:
Submodule data/glest_game updated: bf04854ade...f0cbcec285
@@ -229,7 +229,11 @@ void MenuStateAbout::render() {
|
|||||||
if(customModTexture == NULL) {
|
if(customModTexture == NULL) {
|
||||||
string customModCreditsTextureFile = Config::getInstance().getString("CustomModCreditsTextureFile","");
|
string customModCreditsTextureFile = Config::getInstance().getString("CustomModCreditsTextureFile","");
|
||||||
if(customModCreditsTextureFile != "") {
|
if(customModCreditsTextureFile != "") {
|
||||||
customModTexture = Renderer::findTexture(customModCreditsTextureFile);
|
string data_path= getGameReadWritePath(GameConstants::path_data_CacheLookupKey);
|
||||||
|
if(data_path != ""){
|
||||||
|
endPathWithSlash(data_path);
|
||||||
|
}
|
||||||
|
customModTexture = Renderer::findTexture(data_path + customModCreditsTextureFile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user