From 6b47133c229a809ab1583daee9fbcf5bd12c2e7e Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 24 Apr 2024 00:58:10 -0500 Subject: [PATCH] [nostalgia] Cleanup StudioModules --- src/nostalgia/modules/core/src/studio/studiomodule.cpp | 5 ++--- src/nostalgia/modules/scene/src/studio/studiomodule.cpp | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/nostalgia/modules/core/src/studio/studiomodule.cpp b/src/nostalgia/modules/core/src/studio/studiomodule.cpp index 10c76100..bba778bd 100644 --- a/src/nostalgia/modules/core/src/studio/studiomodule.cpp +++ b/src/nostalgia/modules/core/src/studio/studiomodule.cpp @@ -11,7 +11,7 @@ namespace nostalgia::core { -class StudioModule: public studio::Module { +static class: public studio::Module { ox::Vector editors(studio::StudioContext &ctx) const noexcept final { return { studio::editorMaker(ctx, FileExt_ng), @@ -25,9 +25,8 @@ class StudioModule: public studio::Module { out.emplace_back(ox::make>("Palette", "Palettes", FileExt_npal)); return out; } -}; +} mod; -static StudioModule mod; const studio::Module *studioModule() noexcept { return &mod; } diff --git a/src/nostalgia/modules/scene/src/studio/studiomodule.cpp b/src/nostalgia/modules/scene/src/studio/studiomodule.cpp index eb840adf..e622c5a8 100644 --- a/src/nostalgia/modules/scene/src/studio/studiomodule.cpp +++ b/src/nostalgia/modules/scene/src/studio/studiomodule.cpp @@ -10,7 +10,7 @@ namespace nostalgia::scene { constexpr ox::StringLiteral FileExt_nscn("nscn"); -class StudioModule: public studio::Module { +static class: public studio::Module { public: ox::Vector editors(studio::StudioContext &ctx) const noexcept override { return { @@ -21,9 +21,8 @@ class StudioModule: public studio::Module { ox::Vector> out; return out; } -}; +} mod; -static StudioModule const mod; const studio::Module *studioModule() noexcept { return &mod; }