fix for bug related with customModTexture and data path (required relative path to texture file in the .ini)
This commit is contained in:
parent
38cc0e5459
commit
36a88fe57c
|
@ -1 +1 @@
|
|||
Subproject commit bf04854ade7cd0fc51483c857e590acfef4fbc26
|
||||
Subproject commit f0cbcec28548c1eaf968b7598de0410e23dd0a5a
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue