Compare commits

..

3 Commits

Author SHA1 Message Date
03a05c511e Merge commit '4ccdfc3a6e5bd501968903a01f7d8141b6f88375'
All checks were successful
Build / build (push) Successful in 2m31s
2024-12-04 19:55:17 -06:00
bd91137d27 [nostalgia,olympic] Fix pack tool build for Windows 2024-12-02 21:10:52 -06:00
2b7d12945e [nostalgia/core/studio] Fix MSVC build 2024-12-01 19:42:29 -06:00
5 changed files with 5 additions and 4 deletions

View File

@ -92,7 +92,7 @@ static class: public keel::Module {
}, },
}; };
} }
} mod; } const mod;
keel::Module const*keelModule() noexcept { keel::Module const*keelModule() noexcept {
return &mod; return &mod;

View File

@ -258,7 +258,7 @@ void PaletteEditorImGui::drawColorEditor() noexcept {
} }
if (newName) { if (newName) {
std::ignore = pushCommand<UpdateColorInfoCommand>( std::ignore = pushCommand<UpdateColorInfoCommand>(
m_pal, m_selectedColorRow, ox::String{newName}); m_pal, m_selectedColorRow, static_cast<ox::String>(newName.text));
} }
} }

View File

@ -25,7 +25,7 @@ static class: public studio::Module {
out.emplace_back(ox::make<studio::ItemMakerT<core::Palette>>("Palette", "Palettes", FileExt_npal)); out.emplace_back(ox::make<studio::ItemMakerT<core::Palette>>("Palette", "Palettes", FileExt_npal));
return out; return out;
} }
} mod; } const mod;
const studio::Module *studioModule() noexcept { const studio::Module *studioModule() noexcept {
return &mod; return &mod;

View File

@ -50,7 +50,7 @@ void registerKeelModules() noexcept;
void registerStudioModules() noexcept; void registerStudioModules() noexcept;
} }
#ifdef _WIN32 #if defined(_WIN32) && OLYMPIC_GUI_APP
int WinMain() { int WinMain() {
auto const argc = __argc; auto const argc = __argc;
auto const argv = const_cast<const char**>(__argv); auto const argv = const_cast<const char**>(__argv);

View File

@ -12,6 +12,7 @@ add_library(
) )
target_compile_definitions( target_compile_definitions(
StudioAppLib PUBLIC StudioAppLib PUBLIC
OLYMPIC_GUI_APP=1
OLYMPIC_LOAD_STUDIO_MODULES=1 OLYMPIC_LOAD_STUDIO_MODULES=1
OLYMPIC_APP_NAME="Studio" OLYMPIC_APP_NAME="Studio"
) )