Second attempt at deriving application from a singleton

This commit is contained in:
Riyyi
2021-02-14 02:36:45 +01:00
parent 4467d0d40a
commit deb9e34b8f
5 changed files with 70 additions and 17 deletions
+4 -3
View File
@@ -4,11 +4,12 @@
class Game : public Inferno::Application
{
public:
Game() {}
Game() : Application({}) {}
~Game() {}
};
Inferno::Application* Inferno::createApplication()
Inferno::Application& Inferno::createApplication()
{
return new Game();
Game::initialize();
return Game::the();
}