#include "util/numeric.h"
#include "porting.h"
#include "porting_android.h"
#include "threading/thread.h"
#include "config.h"
#include "filesys.h"
#include "log.h"
#include <sstream>
#include <exception>
#include <cstdlib>
Namespaces | |
porting | |
Functions | |
int | main (int argc, char *argv[]) |
void | android_main (android_app *app) |
JNIEXPORT void JNICALL | Java_net_minetest_minetest_GameActivity_putMessageBoxResult (JNIEnv *env, jclass thiz, jstring text) |
Handler for finished message box input Intentionally NOT in namespace porting ToDo: this doesn't work as expected, there's a workaround for it right now. More... | |
jclass | porting::findClass (const std::string &classname) |
void | porting::initAndroid () |
void | porting::cleanupAndroid () |
static std::string | porting::javaStringToUTF8 (jstring js) |
static std::string | porting::getAndroidPath (jclass cls, jobject obj, jmethodID mt_getAbsPath, const char *getter) |
void | porting::initializePathsAndroid () |
Initializes path_* variables for Android. More... | |
void | porting::showInputDialog (const std::string &acceptButton, const std::string &hint, const std::string ¤t, int editType) |
show text input dialog in java More... | |
void | porting::openURIAndroid (const std::string &url) |
int | porting::getInputDialogState () |
WORKAROUND for not working callbacks from java -> c++ get current state of input dialog. More... | |
std::string | porting::getInputDialogValue () |
WORKAROUND for not working callbacks from java -> c++ get text in current input dialog. More... | |
float | porting::getDisplayDensity () |
v2u32 | porting::getDisplaySize () |
Variables | |
android_app * | porting::app_global |
JNIEnv * | porting::jnienv |
jclass | porting::nativeActivity |
void android_main | ( | android_app * | app | ) |
References porting::app_global, ARRLEN, porting::cleanupAndroid(), errorstream, infostream, main(), PROJECT_NAME, and Thread::setName().
JNIEXPORT void JNICALL Java_net_minetest_minetest_GameActivity_putMessageBoxResult | ( | JNIEnv * | env, |
jclass | thiz, | ||
jstring | text | ||
) |
Handler for finished message box input Intentionally NOT in namespace porting ToDo: this doesn't work as expected, there's a workaround for it right now.
References errorstream.
int main | ( | int | argc, |
char * | argv[] | ||
) |
References Logger::addOutputMaxLevel(), allowed_options, porting::attachOrCreateConsole(), BEGIN_DEBUG_EXCEPTION_HANDLER, create_userdata_path(), debug_set_exception_handler(), END_DEBUG_EXCEPTION_HANDLER, errorstream, Settings::exists(), g_logger, g_settings, g_settings_path, game_configure(), Settings::get(), get_cmdline_opts(), Settings::getBool(), Settings::getFlag(), httpfetch_cleanup(), init_common(), porting::initAndroid(), porting::initializePaths(), porting::initializePathsAndroid(), GameParams::is_dedicated_server, list_game_ids(), list_worlds(), LL_ACTION, print_help(), print_modified_quicktune_values(), print_version(), Logger::registerThread(), ClientLauncher::run(), run_dedicated_server(), run_tests(), sanity_check, setup_log_params(), porting::signal_handler_init(), stderr_output, Settings::updateConfigFile(), and GameParams::world_path.
Referenced by android_main().