mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-19 18:20:07 +02:00
29 lines
957 B
Plaintext
29 lines
957 B
Plaintext
From c798fb22012d5957691f93a65f940dd43ad2f648 Mon Sep 17 00:00:00 2001
|
|
From: begasus <begasus@gmail.com>
|
|
Date: Wed, 27 Jun 2018 07:04:09 +0200
|
|
Subject: Added Haiku paths system
|
|
|
|
|
|
diff --git a/src/arch/beos/archdep.c b/src/arch/beos/archdep.c
|
|
index 41a2114..6a91ded 100644
|
|
--- a/src/arch/beos/archdep.c
|
|
+++ b/src/arch/beos/archdep.c
|
|
@@ -124,7 +124,14 @@ static char *boot_path = NULL;
|
|
const char *archdep_boot_path(void)
|
|
{
|
|
if (boot_path == NULL) {
|
|
+ #ifdef __HAIKU__
|
|
+ char haiku_path[B_PATH_NAME_LENGTH];
|
|
+ find_directory(B_SYSTEM_SETTINGS_DIRECTORY, 0, true, haiku_path, sizeof(haiku_path)-strlen("/VICE/"));
|
|
+ strcat(haiku_path,"/VICE/");
|
|
+ boot_path = haiku_path;
|
|
+ #else
|
|
util_fname_split(argv0, &boot_path, NULL);
|
|
+ #endif
|
|
/* This should not happen, but you never know... */
|
|
if (boot_path == NULL) {
|
|
boot_path = lib_stralloc("./xxx");
|
|
--
|
|
2.16.4
|
|
|