[nostalgia] Fix to allow building UUID map later

This commit is contained in:
2023-02-13 21:37:14 -06:00
parent d17f536832
commit 53229b05da
8 changed files with 46 additions and 18 deletions
+5
View File
@@ -18,6 +18,11 @@ ox::Result<ox::UUID> readUuidHeader(const ox::Buffer &buff) noexcept;
ox::Result<ox::UUID> readUuidHeader(const char *buff, std::size_t buffLen) noexcept;
ox::Error writeUuidHeader(ox::Writer_c auto *writer, const ox::UUID &uuid) noexcept {
const auto hdr = ox::sfmt<ox::BString<40>>("N1{};", uuid.toString());
return write(writer, hdr);
}
template<typename T>
ox::Result<T> readAsset(const ox::Buffer &buff) noexcept {
std::size_t offset = 0;