From 42165ba2d6b83d29c54dcb689d21877a4ec6b30b Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 21 Jan 2025 23:35:55 -0600 Subject: [PATCH] [nostalgia/gfx] Change default file extension for TileSheets to nts --- src/nostalgia/modules/gfx/include/nostalgia/gfx/consts.hpp | 1 + src/nostalgia/modules/gfx/src/studio/studiomodule.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/nostalgia/modules/gfx/include/nostalgia/gfx/consts.hpp b/src/nostalgia/modules/gfx/include/nostalgia/gfx/consts.hpp index be662241..95799f74 100644 --- a/src/nostalgia/modules/gfx/include/nostalgia/gfx/consts.hpp +++ b/src/nostalgia/modules/gfx/include/nostalgia/gfx/consts.hpp @@ -13,6 +13,7 @@ constexpr auto TileHeight = 8; constexpr auto PixelsPerTile = TileWidth * TileHeight; constexpr ox::StringLiteral FileExt_ng("ng"); +constexpr ox::StringLiteral FileExt_nts("nts"); constexpr ox::StringLiteral FileExt_npal("npal"); } diff --git a/src/nostalgia/modules/gfx/src/studio/studiomodule.cpp b/src/nostalgia/modules/gfx/src/studio/studiomodule.cpp index 5675c5dd..f0d63d19 100644 --- a/src/nostalgia/modules/gfx/src/studio/studiomodule.cpp +++ b/src/nostalgia/modules/gfx/src/studio/studiomodule.cpp @@ -14,14 +14,14 @@ namespace nostalgia::gfx { static class: public studio::Module { ox::Vector editors(studio::StudioContext &ctx) const noexcept final { return { - studio::editorMaker(ctx, FileExt_ng), + studio::editorMaker(ctx, {FileExt_ng, FileExt_nts}), studio::editorMaker(ctx, FileExt_npal), }; } ox::Vector> itemMakers(studio::StudioContext&) const noexcept final { ox::Vector> out; - out.emplace_back(ox::make>("Tile Sheet", "TileSheets", FileExt_ng)); + out.emplace_back(ox::make>("Tile Sheet", "TileSheets", FileExt_nts)); out.emplace_back(ox::make>("Palette", "Palettes", FileExt_npal, Palette{ .colorNames = {}, .pages = {{"Page 1", ox::Vector{}}},