Rework internal module registration to happen in constructors.

This commit is contained in:
Sasha Szpakowski
2024-02-24 15:21:38 -04:00
parent c7e4dafd88
commit 1e97e09b28
73 changed files with 154 additions and 248 deletions
+2 -6
View File
@@ -88,7 +88,8 @@ namespace sdl
{
Window::Window()
: open(false)
: love::window::Window("love.window.sdl")
, open(false)
, mouseGrabbed(false)
, window(nullptr)
, glcontext(nullptr)
@@ -1503,11 +1504,6 @@ void Window::requestAttention(bool continuous)
// TODO: Linux?
}
const char *Window::getName() const
{
return "love.window.sdl";
}
} // sdl
} // window
} // love
-2
View File
@@ -130,8 +130,6 @@ public:
void requestAttention(bool continuous) override;
const char *getName() const override;
private:
struct ContextAttribs