coastline 0.0.4
Loading...
Searching...
No Matches
assetpack.h
Go to the documentation of this file.
1#pragma once
2
3#include <filesystem>
4#include <optional>
5#include <string>
6#include <string_view>
7
8#include <nlohmann/json.hpp>
9
10namespace coastline {
11
13inline constexpr std::string_view BOSS_PACK = "boss";
14
16inline constexpr int PACK_SETTINGS_VERSION = 1;
17
19inline constexpr float DEFAULT_XM_MUSIC_GAIN = 1.5f;
20
34
45nlohmann::json PackSettings(const std::filesystem::path &data,
47 const std::filesystem::path &fallback = {});
48
49} // namespace coastline
Definition assetimport.h:11
constexpr float DEFAULT_XM_MUSIC_GAIN
The gain of the music modules of the default pack, as they play quieter than the CD audio.
Definition assetpack.h:19
constexpr std::string_view BOSS_PACK
The name of the pack of the PC images the default pack replaces with branded images.
Definition assetpack.h:13
constexpr int PACK_SETTINGS_VERSION
The version of pack.json the import writes.
Definition assetpack.h:16
std::optional< std::string > CurateAssetPacks(const std::filesystem::path &defaults)
Put the images of the cartridges that show the branding the PC release removed (Nintendo,...
nlohmann::json PackSettings(const std::filesystem::path &data, std::string_view pack, const std::filesystem::path &fallback={})
Read default settings from pack.json and replace matching keys with selected pack settings.