[nostalgia] Restructure module register guards to behave more like include guards

This commit is contained in:
Gary Talent 2023-12-11 22:19:10 -06:00
parent 3b8a9af97b
commit aea1aabcd7
2 changed files with 2 additions and 4 deletions

View File

@ -2,8 +2,6 @@
* Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved. * Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved.
*/ */
#include <keel/module.hpp>
#include <nostalgia/core/keelmodule.hpp> #include <nostalgia/core/keelmodule.hpp>
#include <nostalgia/scene/keelmodule.hpp> #include <nostalgia/scene/keelmodule.hpp>
@ -14,9 +12,9 @@ void registerKeelModules() noexcept {
if (modulesRegistered) { if (modulesRegistered) {
return; return;
} }
modulesRegistered = true;
keel::registerModule(core::keelModule()); keel::registerModule(core::keelModule());
keel::registerModule(scene::keelModule()); keel::registerModule(scene::keelModule());
modulesRegistered = true;
} }
} }

View File

@ -16,9 +16,9 @@ void registerStudioModules() noexcept {
if (modulesRegistered) { if (modulesRegistered) {
return; return;
} }
modulesRegistered = true;
studio::registerModule(core::studioModule()); studio::registerModule(core::studioModule());
studio::registerModule(scene::studioModule()); studio::registerModule(scene::studioModule());
modulesRegistered = true;
} }
} }