coastline 0.0.4
Loading...
Searching...
No Matches
importversion.h
Go to the documentation of this file.
1#pragma once
2
3#include <filesystem>
4#include <span>
5#include <string>
6#include <vector>
7
8namespace coastline {
9
15inline constexpr int DISC_CONVERTER_VERSION = 2;
16
22inline constexpr int CARTRIDGE_CONVERTER_VERSION = 1;
23
32
41bool RecordImport(const std::filesystem::path &defaults, ImportSource source);
42
51
62
71
78
79} // namespace coastline
Definition assetimport.h:11
bool RecordImport(const std::filesystem::path &defaults, ImportSource source)
Record in import.ini of the default pack that source was imported with the current version of its con...
@ Asia
Definition importer.h:20
@ Jpn
Definition controllerpak.h:107
@ Usa
Definition controllerpak.h:105
@ Eur
Definition controllerpak.h:106
std::string ReimportMessage(std::span< const ImportSource > sources)
bool RecordImportFiles(const std::filesystem::path &defaults)
Atomically record the relative path and size of every generated file after a successful import.
constexpr int DISC_CONVERTER_VERSION
The version of the conversion of the Boss Rally disc: the cars, the tracks, the images,...
Definition importversion.h:15
ImportSource
A source of the data of the default pack.
Definition importversion.h:25
@ Disc
Definition importversion.h:26
constexpr int CARTRIDGE_CONVERTER_VERSION
The version of the conversion of a Top Gear Rally cartridge: the models, the images,...
Definition importversion.h:22
std::vector< ImportSource > StaleImports(const std::filesystem::path &defaults)
The sources of the default pack imported with a conversion version different from the current one.
bool DefaultPackUsable(const std::filesystem::path &defaults)
Check whether import.ini records the disc and at least one cartridge at current conversion versions,...