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

View File

@@ -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);
} }
} }