coastline 0.0.4
Loading...
Searching...
No Matches
importversion.h File Reference
#include <filesystem>
#include <span>
#include <string>
#include <vector>
Include dependency graph for importversion.h:

Go to the source code of this file.

Namespaces

namespace  coastline

Enumerations

enum class  coastline::ImportSource {
  coastline::Disc , coastline::Usa , coastline::Jpn , coastline::Eur ,
  coastline::Asia
}
 A source of the data of the default pack. More...

Functions

bool coastline::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 conversion.
std::vector< ImportSource > coastline::StaleImports (const std::filesystem::path &defaults)
 The sources of the default pack imported with a conversion version different from the current one.
bool coastline::DefaultPackUsable (const std::filesystem::path &defaults)
 Check whether import.ini records the disc and at least one cartridge at current conversion versions, the regional layout is current, and every recorded file exists at its imported size.
bool coastline::RecordImportFiles (const std::filesystem::path &defaults)
 Atomically record the relative path and size of every generated file after a successful import.
std::string coastline::ReimportMessage (std::span< const ImportSource > sources)

Variables

constexpr int coastline::DISC_CONVERTER_VERSION = 2
 The version of the conversion of the Boss Rally disc: the cars, the tracks, the images, and the other files ImportDisc() converts, n64model.cpp included.
constexpr int coastline::CARTRIDGE_CONVERTER_VERSION = 1
 The version of the conversion of a Top Gear Rally cartridge: the models, the images, the music, and the other files ImportRom() converts, n64model.cpp included.