#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 "settings.h"
#include <jni.h>
#include <SDL.h>
#include <sstream>
#include <exception>
#include <cstdlib>
Namespaces | |
namespace | porting |
Macros | |
#define | SDL_MAIN_HANDLED 1 |
Functions | |
int | main (int argc, char *argv[]) |
JNIEXPORT void JNICALL | Java_net_minetest_minetest_GameActivity_saveSettings (JNIEnv *env, jobject) |
void | porting::cleanupAndroid () |
std::string | porting::getLanguageAndroid () |
bool | porting::setSystemPaths () |
int | SDL_Main (int _argc, char *_argv[]) |
void | porting::osSpecificInit () |
static std::string | porting::readJavaString (jstring j_str) |
void | porting::showTextInputDialog (const std::string &hint, const std::string ¤t, int editType) |
Show a text input dialog in Java. | |
void | porting::showComboBoxDialog (const std::string *optionList, s32 listSize, s32 selectedIdx) |
Show a selection dialog in Java. | |
void | porting::openURIAndroid (const char *url) |
void | porting::shareFileAndroid (const std::string &path) |
Opens a share intent to the file at path. | |
AndroidDialogType | porting::getLastInputDialogType () |
AndroidDialogState | porting::getInputDialogState () |
std::string | porting::getInputDialogMessage () |
int | porting::getInputDialogSelection () |
float | porting::getDisplayDensity () |
v2u32 | porting::getDisplaySize () |
bool | porting::hasPhysicalKeyboardAndroid () |
Variables | |
JNIEnv * | porting::jnienv = nullptr |
jobject | porting::activity |
jclass | porting::activityClass |
#define SDL_MAIN_HANDLED 1 |
JNIEXPORT void JNICALL Java_net_minetest_minetest_GameActivity_saveSettings | ( | JNIEnv * | env, |
jobject | ) |
References g_settings, g_settings_path, and Settings::updateConfigFile().
|
extern |
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(), get_env_opts(), Settings::getBool(), fs::GetFilenameFromPath(), Settings::getFlag(), init_common(), porting::initializePaths(), GameParams::is_dedicated_server, list_game_ids(), list_worlds(), LL_ACTION, lowercase(), porting::osSpecificInit(), print_help(), print_modified_quicktune_values(), print_version(), Logger::registerThread(), ClientLauncher::run(), run_benchmarks(), run_dedicated_server(), run_tests(), sanity_check, setup_log_params(), porting::signal_handler_init(), stderr_output, str_starts_with(), Settings::updateConfigFile(), use_debugger(), warningstream, and GameParams::world_path.
Referenced by SDL_Main().
int SDL_Main | ( | int | _argc, |
char * | _argv[] ) |
References ARRLEN, porting::cleanupAndroid(), infostream, main(), and Thread::setName().