#pragma once #include namespace big { using file_contents_callback = std::function& file_content, const int data_size)>; class yim_fipackfile { rage::fiPackfile* rpf; public: explicit yim_fipackfile(rage::fiPackfile* rpf); static std::vector get_non_dlc_mounted_devices_names(); static inline std::vector> m_wrapper_call_back; static void add_wrapper_call_back(std::function cb); static void for_each_fipackfile(); std::vector get_file_paths(std::string parent = {}); const char* get_name(); void read_file(const std::filesystem::path& path, file_contents_callback&& cb); void read_xml_file(const std::filesystem::path& path, std::function cb); }; }