Przeglądaj źródła

Cleans out some unneeded Android-specific code from Base.h.

Chris Culy 13 lat temu
rodzic
commit
7d1824bf07
2 zmienionych plików z 1 dodań i 32 usunięć
  1. 0 32
      gameplay/src/Base.h
  2. 1 0
      gameplay/src/FileSystem.cpp

+ 0 - 32
gameplay/src/Base.h

@@ -51,31 +51,6 @@ namespace gameplay
 extern void printError(const char* format, ...);
 }
 
-#ifdef __ANDROID__
-#include <android/log.h>
-#define LOGI(...) ((void)__android_log_print(ANDROID_LOG_INFO, "native-activity", __VA_ARGS__))
-
-// System Errors
-#define LOG_ERROR(x) \
-    { \
-        LOGI(x); \
-        assert(#x == 0); \
-    }
-#define LOG_ERROR_VARG(x, ...) \
-    { \
-        LOGI(x, __VA_ARGS__); \
-        assert(#x == 0); \
-    }
-
-// Warning macro
-#ifdef WARN
-#undef WARN
-#endif
-#define WARN(x) LOGI(x)
-#define WARN_VARG(x, ...) LOGI(x, __VA_ARGS__)
-
-#else
-
 // System Errors
 #define LOG_ERROR(x) \
     { \
@@ -94,7 +69,6 @@ extern void printError(const char* format, ...);
 #endif
 #define WARN(x) printError(x)
 #define WARN_VARG(x, ...) printError(x, __VA_ARGS__)
-#endif
 
 // Bullet Physics
 #include <btBulletDynamicsCommon.h>
@@ -302,12 +276,6 @@ extern GLenum __gl_error_code;
     #pragma warning( disable : 4996 )
 #endif
 
-#ifdef __ANDROID__
-#include <android_native_app_glue.h>
-extern void amain(struct android_app* state);
-#endif
-
-
 // Assert has special behavior on Windows (for Visual Studio).
 #ifdef WIN32
 #ifdef assert

+ 1 - 0
gameplay/src/FileSystem.cpp

@@ -11,6 +11,7 @@
 #endif
 
 #ifdef __ANDROID__
+#include <android/asset_manager.h>
 extern AAssetManager* __assetManager;
 #endif