Browse Source

android: ensure the asset manager is initialised (hint: it's not).

undefined
Sam Hocevar 11 years ago
parent
commit
af2fdff577
2 changed files with 3 additions and 0 deletions
  1. +2
    -0
      src/platform/android/androidapp.cpp
  2. +1
    -0
      src/sys/file.cpp

+ 2
- 0
src/platform/android/androidapp.cpp View File

@@ -276,6 +276,8 @@ AndroidAppData *g_data;

void android_main(android_app* native_app)
{
Log::Info("Java layer calling main() for app 0x%08lx", (long)native_app);

g_data = new AndroidAppData();
g_data->m_native_app = native_app;



+ 1
- 0
src/sys/file.cpp View File

@@ -63,6 +63,7 @@ class FileData
if (err != CELL_FS_SUCCEEDED)
m_fd = -1;
#elif __ANDROID__
ASSERT(g_assets);
m_asset = AAssetManager_open(g_assets, file.C(), AASSET_MODE_UNKNOWN);
#elif HAVE_STDIO_H
/* FIXME: no modes, no error checking, no nothing */


Loading…
Cancel
Save