diff options
author | Spartan322 <Megacake1234@gmail.com> | 2023-12-04 19:10:41 +0100 |
---|---|---|
committer | Spartan322 <Megacake1234@gmail.com> | 2023-12-04 20:54:28 +0100 |
commit | 7019dccc90711ae9ad1a8f97933c3703bb32e542 (patch) | |
tree | 5aee2410587da3ab2f59106c72438133eed5262c /src/openvic-simulation/dataloader/Dataloader.hpp | |
parent | 444a27726695478e44e0166e75df1f354b6432d5 (diff) |
Move Victoria 2 path searching to Vic2PathSearch.cpp
Move fshash and _cached_paths definitions to Dataloader::Search_for_game_path
Diffstat (limited to 'src/openvic-simulation/dataloader/Dataloader.hpp')
-rw-r--r-- | src/openvic-simulation/dataloader/Dataloader.hpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/openvic-simulation/dataloader/Dataloader.hpp b/src/openvic-simulation/dataloader/Dataloader.hpp index a2e377b..4c305b5 100644 --- a/src/openvic-simulation/dataloader/Dataloader.hpp +++ b/src/openvic-simulation/dataloader/Dataloader.hpp @@ -108,16 +108,5 @@ namespace OpenVic { bool load_localisation_files( localisation_callback_t callback, std::string_view localisation_dir = "localisation" ) const; - - private: - struct fshash { - size_t operator()(const std::filesystem::path& p) const noexcept { - return std::filesystem::hash_value(p); - } - }; - - using hint_path_t = fs::path; - using game_path_t = fs::path; - static inline std::unordered_map<hint_path_t, game_path_t, fshash> _cached_paths; }; } |