mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +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)) {
|
if (Utils::FileSystem::exists(applePackagePath)) {
|
||||||
return 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.
|
// Check in the program data directory.
|
||||||
std::string testDataPath {Utils::FileSystem::getProgramDataPath() + "/resources/" +
|
std::string testDataPath {Utils::FileSystem::getProgramDataPath() + "/resources/" +
|
||||||
&path[2]};
|
&path[2]};
|
||||||
|
|
|
@ -415,8 +415,10 @@ namespace Utils
|
||||||
{
|
{
|
||||||
#if defined(__ANDROID__)
|
#if defined(__ANDROID__)
|
||||||
return AndroidVariables::sInternalDataDirectory;
|
return AndroidVariables::sInternalDataDirectory;
|
||||||
|
#elif defined(__HAIKU__)
|
||||||
|
return "/boot/system/data/es-de";
|
||||||
#elif defined(__unix__)
|
#elif defined(__unix__)
|
||||||
return installPrefix + "/share/es-de";
|
return installPrefix + "/share/es-de";
|
||||||
#else
|
#else
|
||||||
return "";
|
return "";
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue