From 7019dccc90711ae9ad1a8f97933c3703bb32e542 Mon Sep 17 00:00:00 2001 From: Spartan322 Date: Mon, 4 Dec 2023 13:10:41 -0500 Subject: Move Victoria 2 path searching to Vic2PathSearch.cpp Move fshash and _cached_paths definitions to Dataloader::Search_for_game_path --- src/openvic-simulation/dataloader/Dataloader.hpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/openvic-simulation/dataloader/Dataloader.hpp') 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 _cached_paths; }; } -- cgit v1.2.3-56-ga3b1