#pragma once #include "openvic/types/Return.hpp" #include "openvic-dataloader/v2script/Parser.hpp" namespace OpenVic { struct GameManager; class Dataloader { std::vector roots; public: Dataloader() = default; /* In reverse-load order, so base defines first and final loaded mod last */ return_t set_roots(std::vector new_roots); std::filesystem::path lookup_file(std::filesystem::path const& path) const; std::vector lookup_files_in_dir(std::filesystem::path const& path) const; return_t load_defines(GameManager& game_manager) const; return_t load_pop_history(GameManager& game_manager, std::filesystem::path const& path) const; }; }