Set UQM as default game

This commit is contained in:
pelya
2010-08-21 20:39:20 +03:00
parent 9850a8e49f
commit 8521e12c45
18 changed files with 46 additions and 33 deletions

View File

@@ -23,6 +23,9 @@
#include <stdlib.h>
#include <signal.h>
#include <errno.h>
#ifdef ANDROID
#include <android/log.h>
#endif
#include "libs/threadlib.h"
#ifndef MAX_LOG_ENTRY_SIZE
@@ -190,6 +193,9 @@ log_addV (log_Level level, const char *fmt, va_list list)
if ((int)level <= maxStreamLevel)
{
fprintf (streamOut, "%s\n", full_msg);
#ifdef ANDROID
__android_log_print( ANDROID_LOG_INFO, "Ur-Quan Masters", "%s", full_msg );
#endif
}
if ((int)level <= maxLevel)
@@ -226,6 +232,9 @@ log_add_nothreadV (log_Level level, const char *fmt, va_list list)
if ((int)level <= maxStreamLevel)
{
fprintf (streamOut, "%s\n", full_msg);
#ifdef ANDROID
__android_log_print( ANDROID_LOG_INFO, "Ur-Quan Masters", "%s", full_msg );
#endif
}
if ((int)level <= maxLevel)

View File

@@ -131,7 +131,7 @@ findFileInDirs (const char *locs[], int numLocs, const char *file)
void
prepareContentDir (const char *contentDirName, const char* addonDirName, const char *execFile)
{
const char *testFile = "uqm-0.6.0-content.uqm";
const char *testFile = "version";
const char *loc;
if (contentDirName == NULL)