cataclysm-dda: update locale-path.patch for new upstream path API

This commit is contained in:
𝑷𝒉𝒊𝒍𝒐𝒄𝒂𝒍𝒚𝒔𝒕
2026-07-06 21:23:30 -04:00
parent d04dfa7617
commit e0d5fc661f
+2 -2
View File
@@ -6,8 +6,8 @@ diff --git a/src/translations.cpp b/src/translations.cpp
#endif
-#if !defined(__ANDROID__) && ((defined(__linux__) || defined(CATA_IS_ON_BSD) || (defined(MACOSX) && !defined(TILES))))
if( !PATH_INFO::base_path().empty() ) {
loc_dir = PATH_INFO::base_path() + "share/locale";
if( !PATH_INFO::base_path().get_logical_root_path().empty() ) {
loc_dir = ( PATH_INFO::base_path() / "share" / "locale" ).generic_u8string();
} else {
loc_dir = PATH_INFO::langdir();
}