mirror of
https://github.com/glest/glest-source.git
synced 2025-09-24 22:51:27 +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) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user