use haiku native threads

This commit is contained in:
Li
2026-04-20 09:02:13 +00:00
parent 1effcd1e6d
commit 9ba3fabfb6
7 changed files with 96 additions and 8 deletions

View File

@@ -191,8 +191,13 @@ int main(void) {
App* app = new MAIN_CLASS();
g_app = app;
#ifdef __HAIKU__
((MAIN_CLASS*)g_app)->externalStoragePath = "/system/settings/minecraftpe";
((MAIN_CLASS*)g_app)->externalCacheStoragePath = "/system/settings/minecraftpe";
#else
((MAIN_CLASS*)g_app)->externalStoragePath = ".";
((MAIN_CLASS*)g_app)->externalCacheStoragePath = ".";
#endif
g_app->init(appContext);
g_app->setSize(appContext.platform->getScreenWidth(), appContext.platform->getScreenHeight());