Revert application and remove singleton class, it breaks object lifetime?

This commit is contained in:
Riyyi
2021-02-14 00:06:30 +01:00
parent 3583c2994b
commit 6103854503
6 changed files with 31 additions and 46 deletions
+3 -3
View File
@@ -4,11 +4,11 @@
class Game : public Inferno::Application
{
public:
Game() : Application({}) {}
Game() {}
~Game() {}
};
Inferno::Application& Inferno::getApplication()
Inferno::Application* Inferno::createApplication()
{
return Game::the();
return new Game();
}