mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-03-06 14:27:43 +00:00
(Haiku) Added support for the correct system resource directories
This commit is contained in:
parent
f7496141f4
commit
20293e1c03
|
@ -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]};
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue