UFO: Alien Invasion
android_system.cpp File Reference

Some android specific functions. More...

#include <unistd.h>
#include <sys/time.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <pwd.h>
#include <dlfcn.h>
#include <fcntl.h>
#include <locale.h>
#include <signal.h>
#include <dirent.h>
#include "../../common/common.h"
#include "../system.h"
#include <android/log.h>
#include "../android/android_debugger.h"
Include dependency graph for android_system.cpp:

Go to the source code of this file.

Functions

const char * Sys_GetCurrentUser (void)
 
void Sys_Error (const char *error,...)
 Errors out of the game. More...
 
void Sys_Quit (void)
 
void Sys_Backtrace (void)
 On platforms supporting it, print a backtrace. More...
 

Detailed Description

Some android specific functions.

Definition in file android_system.cpp.

Function Documentation

◆ Sys_Backtrace()

void Sys_Backtrace ( void  )

On platforms supporting it, print a backtrace.

Definition at line 102 of file android_system.cpp.

References androidDumpBacktrace(), BUILDSTRING, Com_BreakIntoDebugger(), Com_UploadCrashDump(), CPUSTRING, FILE, Sys_Fopen(), and UFO_VERSION.

Referenced by Com_Error(), Com_SetValue(), Com_ValueToStr(), and Sys_Error().

◆ Sys_Error()

void Sys_Error ( const char *  error,
  ... 
)

Errors out of the game.

Note
The error message should not have a newline - it's added inside of this function
This function does never return

Definition at line 57 of file android_system.cpp.

References Com_BreakIntoDebugger(), Mem_Shutdown(), Q_vsnprintf(), Sys_Backtrace(), and Sys_ConsoleShutdown().

◆ Sys_GetCurrentUser()

const char * Sys_GetCurrentUser ( void  )

Definition at line 44 of file android_system.cpp.

References user.

Referenced by CL_InitLocal(), Com_UploadCrashDump(), and WEB_InitStartup().

◆ Sys_Quit()

void Sys_Quit ( void  )