mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
Use sdcard for loading data for Android examples.
This commit is contained in:
parent
8c2b39efe2
commit
433a29d7d6
1 changed files with 4 additions and 1 deletions
|
@ -218,8 +218,11 @@ namespace entry
|
|||
|
||||
int32_t MainThreadEntry::threadFunc(void* _userData)
|
||||
{
|
||||
int32_t result = chdir("/sdcard/bgfx/examples/runtime");
|
||||
BX_CHECK(0 == result, "Failed to chdir to dir. android.permission.WRITE_EXTERNAL_STORAGE?", errno);
|
||||
|
||||
MainThreadEntry* self = (MainThreadEntry*)_userData;
|
||||
int32_t result = main(self->m_argc, self->m_argv);
|
||||
result = main(self->m_argc, self->m_argv);
|
||||
// PostMessage(s_ctx.m_hwnd, WM_QUIT, 0, 0);
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue