-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed check of option prerequisites (#27735)
* Fixed check of option prerequisites * Fix Android builds
- Loading branch information
1 parent
3d707cd
commit be1b069
Showing
2 changed files
with
35 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
be1b069
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ZhilkinSerg This commit appears to fix the Android compile errors we were seeing, but I've tried building and running the Android version with this change and now I'm getting an abort signal on Android startup (once you get past the "Z" Java UI and into the actual game). The root of the issue seems to sdltiles.cpp:402, which was changed in d146c85:
bool software_renderer = get_option<std::string>( "RENDERER" ).empty();
When that line executes,
options_manager::get_option()
callsdebugmsg("requested non-existing option RENDERER")
which triggers the program to abort.be1b069
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I believe I need to add some guards for Android in sdltiles.cpp not to check this RENDERER option and expose renderer selection option to Java UI (that was my initial plan which I didn't follow as I've temporary lost access to Android build machine).