coastline 0.0.4
Loading...
Searching...
No Matches
assetimport.h
Go to the documentation of this file.
1#pragma once
2
3#include <filesystem>
4#include <optional>
5#include <span>
6#include <string>
7#include <vector>
8
9#include "importer.h"
10
Definition assetimport.h:11
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.