56 const std::filesystem::path&
directory,
const std::filesystem::path& fileName,
59 const CustomBoardState&
state);
64 [[
nodiscard]] std::expected<std::optional<std::filesystem::path>, std::string>
std::filesystem::path directory
Rect customBoardSlotRect(std::size_t slot) noexcept
CustomBoardInput processCustomBoardInput(CustomBoardState &state, const uimsg::Message &message) noexcept
void closeCustomBoardDialog(CustomBoardState &state) noexcept
constexpr std::size_t CustomBoardLimit
std::expected< std::optional< std::filesystem::path >, std::string > restoreSavedCustomBoard(std::string_view savedAssetRoot, const data::ResourceSnapshot &resources, int monetarySystem)
constexpr std::size_t CustomBoardPageSize
std::expected< void, std::string > openCustomBoardDialog(CustomBoardState &state, const std::filesystem::path &moduleDirectory, display::Screen2D previousView)
bool customBoardHasNext(const CustomBoardState &state) noexcept
bool customBoardHasPrevious(const CustomBoardState &state) noexcept
std::expected< CustomBoardSelection, std::string > validateCustomBoardFile(const std::filesystem::path &directory, const std::filesystem::path &fileName, std::uint32_t installedSecurityVersion)
std::expected< CustomBoardSelection, std::string > validateSelectedCustomBoard(const CustomBoardState &state)
std::expected< std::uint32_t, std::string > readCustomBoardSecurityVersion()
std::filesystem::path fileName
std::filesystem::path boardFile
std::filesystem::path assetRoot
std::vector< CustomBoardEntry > entries
std::array< Rect, 4 > buttonRects
std::filesystem::path directory
display::Screen2D previousView