diff --git a/pkgs/games/cataclysm-dda/locale-path.patch b/pkgs/games/cataclysm-dda/locale-path.patch index 8f18b0ffb71e..b36fa8845ba7 100644 --- a/pkgs/games/cataclysm-dda/locale-path.patch +++ b/pkgs/games/cataclysm-dda/locale-path.patch @@ -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(); }