mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
27 lines
876 B
Plaintext
27 lines
876 B
Plaintext
From d4ebc96384df67a5522e4bd7855a0e8e7d1db9de Mon Sep 17 00:00:00 2001
|
|
From: Chris Roberts <cpr420@gmail.com>
|
|
Date: Fri, 15 Dec 2023 22:44:22 -0700
|
|
Subject: use the data directory instead of share
|
|
|
|
|
|
diff --git a/core/src/xmake/engine.c b/core/src/xmake/engine.c
|
|
index 7469e78..e58decc 100644
|
|
--- a/core/src/xmake/engine.c
|
|
+++ b/core/src/xmake/engine.c
|
|
@@ -765,8 +765,11 @@ static tb_bool_t xm_engine_get_program_directory(xm_engine_t* engine, tb_char_t*
|
|
|
|
// init share/name sub-directory
|
|
tb_char_t sharedir[128];
|
|
+#if defined(TB_CONFIG_OS_HAIKU)
|
|
+ tb_snprintf(sharedir, sizeof(sharedir), "../data/%s", engine->name);
|
|
+#else
|
|
tb_snprintf(sharedir, sizeof(sharedir), "../share/%s", engine->name);
|
|
-
|
|
+#endif
|
|
// find the program (lua) directory
|
|
tb_size_t i;
|
|
tb_file_info_t info;
|
|
--
|
|
2.42.1
|
|
|