Compiles on Android! Added Eclipse project, import it into your workspace and it should be runnable on Android!
Disabled Squirrel for Android cLog now logs to Android LogCat as well Fixed Lua so it compiles on Android Removed/commented out exceptions in JsonCpp so it compiles on Android git-svn-id: http://mc-server.googlecode.com/svn/trunk@741 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -9,6 +9,9 @@
|
||||
|
||||
#include "cIsThread.h"
|
||||
|
||||
#if defined(ANDROID_NDK)
|
||||
#include <android/log.h>
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -97,6 +100,10 @@ void cLog::ClearLog()
|
||||
|
||||
void cLog::Log(const char * a_Format, va_list argList)
|
||||
{
|
||||
#if defined(ANDROID_NDK)
|
||||
__android_log_vprint(ANDROID_LOG_ERROR,"MCServer", a_Format, argList);
|
||||
return; // This is as far as android goes
|
||||
#endif
|
||||
AString Message;
|
||||
AppendVPrintf(Message, a_Format, argList);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user