Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
porting_android.cpp File Reference
#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>
+ Include dependency graph for porting_android.cpp:

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 &current, 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
 

Macro Definition Documentation

◆ SDL_MAIN_HANDLED

#define SDL_MAIN_HANDLED   1

Function Documentation

◆ Java_net_minetest_minetest_GameActivity_saveSettings()

JNIEXPORT void JNICALL Java_net_minetest_minetest_GameActivity_saveSettings ( JNIEnv * env,
jobject  )

References g_settings, g_settings_path, and Settings::updateConfigFile().

+ Here is the call graph for this function:

◆ main()

◆ SDL_Main()

int SDL_Main ( int _argc,
char * _argv[] )

References ARRLEN, porting::cleanupAndroid(), infostream, main(), and Thread::setName().

+ Here is the call graph for this function: