coastline 0.0.4
Loading...
Searching...
No Matches
assetstorage.h File Reference
#include <cstdint>
#include <expected>
#include <filesystem>
#include <optional>
#include <string>
#include <system_error>
#include <vector>
Include dependency graph for assetstorage.h:

Go to the source code of this file.

Classes

struct  coastline::AssetFileAlias
 A logical file backed by a physical file in the same pack or the default pack. More...
struct  coastline::AssetStorageSavings
 The number and total byte size of files removed from freshly converted generated packs. More...

Namespaces

namespace  coastline

Functions

std::expected< AssetStorageSavings, std::string > coastline::DeduplicateAssetFiles (const std::filesystem::path &defaults)
 Replace byte-identical generated files with aliases.
std::optional< std::string > coastline::FinalizeGeneratedAssetPacks (const std::filesystem::path &defaults)
 Remove empty subdirectories and write permissions from generated packs, excluding mod packs.
void coastline::RemoveAssetTree (const std::filesystem::path &path, std::error_code &error)
 Delete a tree after restoring directory owner-write permissions, without following symlinks.
std::expected< std::vector< AssetFileAlias >, std::string > coastline::ReadAssetFileAliases (const std::filesystem::path &pack, const std::filesystem::path &defaults)
 Read and validate an alias table, including its physical targets.

Variables

constexpr const char * coastline::ASSET_ALIASES_FILE = "asset-aliases.txt"
 The alias-table filename for logical paths and their physical backing files.