From fa1e3594ea1ef82f351cff9ea45c0c46626d6384 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Tue, 18 Jun 2019 23:17:52 +0200
Subject: user directory for Haiku


diff --git a/OpenClaw/Engine/GameApp/MainLoop.cpp b/OpenClaw/Engine/GameApp/MainLoop.cpp
index f5c616e..6087cb8 100644
--- a/OpenClaw/Engine/GameApp/MainLoop.cpp
+++ b/OpenClaw/Engine/GameApp/MainLoop.cpp
@@ -24,6 +24,8 @@ int RunGameEngine(int argc, char** argv)
     userDirectory = "/sdcard/claw/";
 #elif defined(__WINDOWS__)
     userDirectory = "";
+#elif defined(__HAIKU__)
+    userDirectory = "/system/settings/OpenClaw/";
 #else
     const char* homedir;
 
-- 
2.30.2


From 88786a5e7c5b11c6a27c8d51445fed8f6dbf6a91 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Tue, 18 Jun 2019 23:22:40 +0200
Subject: assets folder


diff --git a/Build_Release/config.xml b/Build_Release/config.xml
index 36c3195..cb3b1de 100644
--- a/Build_Release/config.xml
+++ b/Build_Release/config.xml
@@ -22,7 +22,7 @@
     <ConsoleFont font="clacon.ttf" size="20" />
   </Font>
   <Assets>
-    <AssetsFolder></AssetsFolder>
+    <AssetsFolder>/system/apps/OpenClaw/assets/</AssetsFolder>
     <RezArchive>CLAW.REZ</RezArchive>
     <CustomArchive>ASSETS.ZIP</CustomArchive>
     <ResourceCacheSize>150</ResourceCacheSize>
-- 
2.30.2


From 12a1beaeefe34d50ae3e74d0b57682692900396e Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Mon, 27 Sep 2021 09:35:24 +1000
Subject: Set 800x600 resolution by default


diff --git a/Build_Release/config.xml b/Build_Release/config.xml
index cb3b1de..81b6a2e 100644
--- a/Build_Release/config.xml
+++ b/Build_Release/config.xml
@@ -1,6 +1,6 @@
 <Configuration>
   <Display>
-    <Size width="1600" height="1200" />
+    <Size width="800" height="600" />
     <Scale>1</Scale>
     <UseVerticalSync>false</UseVerticalSync>
     <IsFullscreen>false</IsFullscreen>
-- 
2.30.2


From 9767f34f2021b73b8fe4925d2e8078df5d6d7c52 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Mon, 27 Sep 2021 09:41:56 +1000
Subject: Uninitialize SDL Audio subsystem


diff --git a/OpenClaw/Engine/GameApp/BaseGameApp.cpp b/OpenClaw/Engine/GameApp/BaseGameApp.cpp
index f8c118c..dca4d8b 100644
--- a/OpenClaw/Engine/GameApp/BaseGameApp.cpp
+++ b/OpenClaw/Engine/GameApp/BaseGameApp.cpp
@@ -105,6 +105,7 @@ void BaseGameApp::Terminate()
     SDL_DestroyRenderer(m_pRenderer);
     SDL_DestroyWindow(m_pWindow);
     SAFE_DELETE(m_pAudio);
+    SDL_QuitSubSystem(SDL_INIT_AUDIO);
     SAFE_DELETE(m_pTouchManager);
     SAFE_DELETE(m_pEventMgr);
     SAFE_DELETE(m_pResourceMgr);
-- 
2.30.2

