diff options
author | Maksim <MoNTE48@mail.ua> | 2020-05-06 14:25:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-06 14:25:57 +0200 |
commit | 4f9a5f67ee745d78fdc3e173972a3df110f989cf (patch) | |
tree | 056b49caaabe8db56aaf5782bfb8ff5757f8a029 /src/porting_android.h | |
parent | e8e5d282da81a0c6bf37ece93dfa5f274aaaf041 (diff) | |
download | minetest-4f9a5f67ee745d78fdc3e173972a3df110f989cf.tar.gz minetest-4f9a5f67ee745d78fdc3e173972a3df110f989cf.tar.bz2 minetest-4f9a5f67ee745d78fdc3e173972a3df110f989cf.zip |
Android: porting_android.cpp refactoring (#9687)
* Android: porting_android.cpp refactoring
* Replace assert to FATAL_ERROR_IF
Diffstat (limited to 'src/porting_android.h')
-rw-r--r-- | src/porting_android.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/porting_android.h b/src/porting_android.h index 60eb2a9c0..42f90b60b 100644 --- a/src/porting_android.h +++ b/src/porting_android.h @@ -30,16 +30,15 @@ with this program; if not, write to the Free Software Foundation, Inc., #include <string> namespace porting { -/** java app **/ +// java app extern android_app *app_global; -/** java <-> c++ interaction interface **/ +// java <-> c++ interaction interface extern JNIEnv *jnienv; -/** - * do initialization required on android only - */ +// do initialization required on android only void initAndroid(); + void cleanupAndroid(); /** @@ -56,8 +55,8 @@ void initializePathsAndroid(); * @param editType type of texfield * (1==multiline text input; 2==single line text input; 3=password field) */ -void showInputDialog(const std::string& acceptButton, - const std::string& hint, const std::string& current, int editType); +void showInputDialog(const std::string &acceptButton, + const std::string &hint, const std::string ¤t, int editType); /** * WORKAROUND for not working callbacks from java -> c++ @@ -75,5 +74,4 @@ std::string getInputDialogValue(); float getDisplayDensity(); v2u32 getDisplaySize(); #endif - } |