mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 23:18:58 +02:00
35 lines
879 B
Plaintext
35 lines
879 B
Plaintext
From e39e97c526cfa60a96afcd18683a90ce62685cca Mon Sep 17 00:00:00 2001
|
|
From: Jerome Duval <jerome.duval@gmail.com>
|
|
Date: Fri, 24 Mar 2023 11:16:09 +0100
|
|
Subject: Haiku: documentation path
|
|
|
|
|
|
diff --git a/source/files.cc b/source/files.cc
|
|
index a09dc81..5c56ee2 100644
|
|
--- a/source/files.cc
|
|
+++ b/source/files.cc
|
|
@@ -410,6 +410,12 @@ static vector<string> _get_base_dirs()
|
|
"crawl/",
|
|
path,
|
|
B_PATH_NAME_LENGTH);
|
|
+ char docPath[B_PATH_NAME_LENGTH];
|
|
+ find_path(B_APP_IMAGE_SYMBOL,
|
|
+ B_FIND_PATH_DOCUMENTATION_DIRECTORY,
|
|
+ "packages/crawl/",
|
|
+ docPath,
|
|
+ B_PATH_NAME_LENGTH);
|
|
#endif
|
|
const string rawbases[] =
|
|
{
|
|
@@ -428,6 +434,7 @@ static vector<string> _get_base_dirs()
|
|
#endif
|
|
#ifdef __HAIKU__
|
|
std::string(path),
|
|
+ std::string(docPath),
|
|
#endif
|
|
};
|
|
|
|
--
|
|
2.37.3
|
|
|