Răsfoiți Sursa

Fix android

Daniele Bartolini 11 ani în urmă
părinte
comite
7c1759c1e7

+ 1 - 2
engine/os/android/android_device.cpp

@@ -28,9 +28,9 @@ OTHER DEALINGS IN THE SOFTWARE.
 #include "device.h"
 #include "log.h"
 #include "os_event_queue.h"
-#include "renderer.h"
 #include "touch.h"
 #include "os_window.h"
+#include "thread.h"
 #include <jni.h>
 #include <android/sensor.h>
 #include <android_native_app_glue.h>
@@ -350,7 +350,6 @@ void android_main(struct android_app* app)
 	app_dummy();
 
 	crown::memory::init();
-	crown::os::init_os();
 	crown::AndroidDevice* engine = CE_NEW(crown::default_allocator(), crown::AndroidDevice)();
 	crown::set_device(engine);
 

+ 6 - 0
engine/os/android/apk_filesystem.cpp

@@ -57,6 +57,12 @@ void ApkFilesystem::close(File* file)
 	CE_DELETE(default_allocator(), file);
 }
 
+//-----------------------------------------------------------------------------
+bool ApkFilesystem::exists(const char* path)
+{
+	return false;
+}
+
 //-----------------------------------------------------------------------------
 bool ApkFilesystem::is_directory(const char* path)
 {

+ 3 - 0
engine/os/android/apk_filesystem.h

@@ -47,6 +47,9 @@ public:
 	/// @copydoc Filesystem::close()
 	void close(File* file);
 
+	/// Returns always false under Android.
+	bool exists(const char* path);
+
 	/// Returns always false under Android.
 	bool is_directory(const char* path);