cataclysm-dda: update locale-path.patch for new upstream path API
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user