(Haiku) Added support for the correct system resource directories

This commit is contained in:
Leon Styhre 2024-08-23 16:42:26 +02:00
parent f7496141f4
commit 20293e1c03
2 changed files with 4 additions and 2 deletions

View file

@ -40,7 +40,7 @@ std::string ResourceManager::getResourcePath(const std::string& path, bool termi
if (Utils::FileSystem::exists(applePackagePath)) {
return applePackagePath;
}
#elif (defined(__unix__) && !defined(APPIMAGE_BUILD)) || defined(__ANDROID__)
#elif (defined(__unix__) && !defined(APPIMAGE_BUILD)) || defined(__ANDROID__) || defined(__HAIKU__)
// Check in the program data directory.
std::string testDataPath {Utils::FileSystem::getProgramDataPath() + "/resources/" +
&path[2]};

View file

@ -415,8 +415,10 @@ namespace Utils
{
#if defined(__ANDROID__)
return AndroidVariables::sInternalDataDirectory;
#elif defined(__HAIKU__)
return "/boot/system/data/es-de";
#elif defined(__unix__)
return installPrefix + "/share/es-de";
return installPrefix + "/share/es-de";
#else
return "";
#endif