fix for bug related with customModTexture and data path (required relative path to texture file in the .ini)

This commit is contained in:
filux 2015-12-05 18:38:21 +01:00
parent 38cc0e5459
commit 36a88fe57c
2 changed files with 6 additions and 2 deletions

@ -1 +1 @@
Subproject commit bf04854ade7cd0fc51483c857e590acfef4fbc26
Subproject commit f0cbcec28548c1eaf968b7598de0410e23dd0a5a

View File

@ -229,7 +229,11 @@ void MenuStateAbout::render() {
if(customModTexture == NULL) {
string customModCreditsTextureFile = Config::getInstance().getString("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);
}
}