Skip to content
Permalink
Browse files
fix for bug related with customModTexture and data path (required rel…
…ative path to texture file in the .ini)
  • Loading branch information
filux committed Dec 5, 2015
1 parent 38cc0e5 commit 36a88fe57c860040cd753101d26ae23674ebf237
Showing with 6 additions and 2 deletions.
  1. +1 −1 data/glest_game
  2. +5 −1 source/glest_game/menu/menu_state_about.cpp
Submodule glest_game updated 696 files
@@ -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);
}
}

0 comments on commit 36a88fe

Please sign in to comment.