std::function< bool(const std::string &step, double fraction)> ImportProgress
Reports import progress with a description and a fraction from 0 to 1.
Definition importer.h:27
std::optional< std::string > ImportAssetImages(const std::filesystem::path &data, const std::filesystem::path &disc, std::span< const std::filesystem::path > roms, const ImportProgress &progress={}, std::vector< std::filesystem::path > *sources=nullptr)
Import a disc and every supplied ROM as one batch.
std::optional< std::string > WriteImportDependencies(const std::filesystem::path &file, const std::filesystem::path &target, std::span< const std::filesystem::path > sources)
Write a GCC-style dependency file atomically for a completed asset import.