DDraceNetwork Docs
android_main.cpp File Reference
#include "android_main.h"
#include <base/hash.h>
#include <base/log.h>
#include <base/system.h>
#include <engine/shared/linereader.h>
#include <string>
#include <vector>
#include <jni.h>
#include <SDL.h>
Include dependency graph for android_main.cpp:

Classes

class  CIntegrityFileLine
 

Functions

static bool UnpackAsset (const char *pFilename)
 
static bool EqualIntegrityFiles (const char *pAssetFilename, const char *pStorageFilename)
 
static std::vector< CIntegrityFileLineReadIntegrityFile (const char *pFilename)
 
const char * InitAndroid ()
 
void RestartAndroidApp ()
 
bool StartAndroidServer ()
 
void ExecuteAndroidServerCommand (const char *pCommand)
 
bool IsAndroidServerRunning ()
 

Variables

constexpr const char * INTEGRITY_INDEX = "integrity.txt"
 
constexpr const char * INTEGRITY_INDEX_SAVE = "integrity_save.txt"
 
constexpr uint32_t COMMAND_USER = 0x8000
 
constexpr uint32_t COMMAND_RESTART_APP = COMMAND_USER + 1
 

Function Documentation

◆ EqualIntegrityFiles()

static bool EqualIntegrityFiles ( const char *  pAssetFilename,
const char *  pStorageFilename 
)
static

◆ ReadIntegrityFile()

static std::vector< CIntegrityFileLine > ReadIntegrityFile ( const char *  pFilename)
static

◆ UnpackAsset()

static bool UnpackAsset ( const char *  pFilename)
static

Variable Documentation

◆ COMMAND_RESTART_APP

constexpr uint32_t COMMAND_RESTART_APP = COMMAND_USER + 1
constexpr

◆ COMMAND_USER

constexpr uint32_t COMMAND_USER = 0x8000
constexpr

◆ INTEGRITY_INDEX

constexpr const char* INTEGRITY_INDEX = "integrity.txt"
constexpr

◆ INTEGRITY_INDEX_SAVE

constexpr const char* INTEGRITY_INDEX_SAVE = "integrity_save.txt"
constexpr