aboutsummaryrefslogtreecommitdiff
path: root/src/base_tab/BaseImportTab.hpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-12-27 15:58:16 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-12-27 15:58:16 +0100
commitc97e151e1be7123d9d15e9ffcff1c46cecbb543a (patch)
treea160099d4b1e7f66b22a19d35c0d1a997aca86bb /src/base_tab/BaseImportTab.hpp
parentf40fd3e7a4c5fd36c977ad5343de4fe7859cbbbe (diff)
Improve game import
Diffstat (limited to 'src/base_tab/BaseImportTab.hpp')
-rw-r--r--src/base_tab/BaseImportTab.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/base_tab/BaseImportTab.hpp b/src/base_tab/BaseImportTab.hpp
index 2bd5953..5fe2383 100644
--- a/src/base_tab/BaseImportTab.hpp
+++ b/src/base_tab/BaseImportTab.hpp
@@ -4,13 +4,15 @@
#include "GameListManager.hpp"
#include "game_tab/Game.hpp"
#include <vector>
+#include <utility>
class BaseImportTab : public TabBase_TabImport {
TabInfos *main_tab;
std::shared_ptr<GameListManager> glm;
std::vector<std::shared_ptr<Game>> games_to_import;
- std::vector<std::shared_ptr<GameBase>> databases_to_import;
- std::unordered_map<long, std::shared_ptr<Game>> selected_games_to_import;
+ std::vector<std::string> databases_to_import;
+ /// @brief Old for each pair of DB (file path) and game id, the given game object
+ std::unordered_map<std::string, std::unordered_map<long,std::shared_ptr<Game>>> selected_games_to_import;
std::shared_ptr<GameBase> base;
std::shared_ptr<GameBase> selected_base;
@@ -24,5 +26,5 @@ public:
void OnImportDatabase(wxCommandEvent &event);
void Reset(std::shared_ptr<GameBase> base);
std::vector<std::shared_ptr<Game>> GetGameToImport();
- std::vector<std::shared_ptr<GameBase>> GetDatabaseToImport() {return databases_to_import;};
+ std::vector<std::string> GetDatabaseToImport() {return databases_to_import;};
}; \ No newline at end of file