From 110d4a2e6ab32daf74d256fd8ffff489dbc4a932 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 7 Feb 2026 15:29:53 -0600 Subject: [PATCH] [keel] Cleanup --- src/olympic/keel/include/keel/media.hpp | 4 ---- src/olympic/keel/include/keel/module.hpp | 4 ++-- src/olympic/keel/include/keel/typeconv.hpp | 22 +++++++++++++--------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/olympic/keel/include/keel/media.hpp b/src/olympic/keel/include/keel/media.hpp index e53bcef5..7b07242b 100644 --- a/src/olympic/keel/include/keel/media.hpp +++ b/src/olympic/keel/include/keel/media.hpp @@ -189,8 +189,4 @@ ox::Error setRomFs(Context &ctx, ox::UPtr &&fs) noexcept; ox::Result> loadRomFs(ox::StringViewCR path) noexcept; -ox::Result loadRom(ox::StringViewCR path = "") noexcept; - -void unloadRom(char*) noexcept; - } diff --git a/src/olympic/keel/include/keel/module.hpp b/src/olympic/keel/include/keel/module.hpp index 0053e803..28519422 100644 --- a/src/olympic/keel/include/keel/module.hpp +++ b/src/olympic/keel/include/keel/module.hpp @@ -37,9 +37,9 @@ class Module { virtual ox::Vector packTransforms() const noexcept; }; -void registerModule(Module const*mod) noexcept; +void registerModule(Module const *mod) noexcept; [[nodiscard]] -ox::Vector const &modules() noexcept; +ox::Vector const &modules() noexcept; } diff --git a/src/olympic/keel/include/keel/typeconv.hpp b/src/olympic/keel/include/keel/typeconv.hpp index df3232fb..33282b4a 100644 --- a/src/olympic/keel/include/keel/typeconv.hpp +++ b/src/olympic/keel/include/keel/typeconv.hpp @@ -19,7 +19,7 @@ class Wrap { public: virtual ~Wrap() = default; [[nodiscard]] - virtual ox::CStringView typeName() const noexcept = 0; + virtual ox::StringLiteral typeName() const noexcept = 0; [[nodiscard]] virtual int typeVersion() const noexcept = 0; [[nodiscard]] @@ -48,7 +48,7 @@ class WrapRef final: public WrapT { constexpr explicit WrapRef(T &obj): m_obj{obj} {} [[nodiscard]] - ox::CStringView typeName() const noexcept override { + ox::StringLiteral typeName() const noexcept override { return ox::ModelTypeName_v; } @@ -77,7 +77,7 @@ class WrapInline final: public WrapT { } [[nodiscard]] - ox::CStringView typeName() const noexcept override { + ox::StringLiteral typeName() const noexcept override { return ox::ModelTypeName_v; } @@ -108,7 +108,7 @@ class BaseConverter { constexpr virtual ~BaseConverter() noexcept = default; [[nodiscard]] - constexpr virtual ox::StringView srcTypeName() const noexcept = 0; + constexpr virtual ox::StringLiteral srcTypeName() const noexcept = 0; [[nodiscard]] constexpr virtual int srcTypeVersion() const noexcept = 0; @@ -154,7 +154,7 @@ class ConverterFunc final: public BaseConverter { using DstType = typename decltype(extractParams(Func))::Dst; [[nodiscard]] - constexpr ox::StringView srcTypeName() const noexcept override { + constexpr ox::StringLiteral srcTypeName() const noexcept override { return ox::ModelTypeName_v; } @@ -253,19 +253,22 @@ template ox::Result convertObjToObj( Context &ctx, auto &src) noexcept { - OX_REQUIRE_M(out, convert(ctx, WrapRef{src}, ox::ModelTypeName_v, ox::ModelTypeVersion_v)); + OX_REQUIRE_M(out, + convert(ctx, WrapRef{src}, ox::ModelTypeName_v, ox::ModelTypeVersion_v)); return std::move(wrapCast(*out)); } template ox::Result convert(Context &ctx, ox::BufferView const &src) noexcept { - OX_REQUIRE(out, convert(ctx, src, ox::ModelTypeName_v, ox::ModelTypeVersion_v)); + OX_REQUIRE(out, + convert(ctx, src, ox::ModelTypeName_v, ox::ModelTypeVersion_v)); return std::move(wrapCast(*out)); } template ox::Error convert(Context &ctx, ox::BufferView const &buff, DstType &outObj) noexcept { - OX_REQUIRE(out, convert(ctx, buff, ox::ModelTypeName_v, ox::ModelTypeVersion_v)); + OX_REQUIRE(out, + convert(ctx, buff, ox::ModelTypeName_v, ox::ModelTypeVersion_v)); outObj = std::move(wrapCast(*out)); return {}; } @@ -280,7 +283,8 @@ ox::Error convertObjToObj(Context &ctx, auto &src, DstType &outObj) noexcept { template ox::Result convertBuffToBuff( Context &ctx, ox::BufferView const &src, ox::ClawFormat const fmt) noexcept { - OX_REQUIRE(out, convert(ctx, src, ox::ModelTypeName_v, ox::ModelTypeVersion_v)); + OX_REQUIRE(out, + convert(ctx, src, ox::ModelTypeName_v, ox::ModelTypeVersion_v)); return ox::writeClaw(wrapCast(*out), fmt); }