mirror of
https://github.com/edubart/otclient.git
synced 2025-12-15 05:09:46 +01:00
@@ -33,6 +33,7 @@
|
||||
|
||||
#ifdef FW_SOUND
|
||||
#include <framework/sound/soundmanager.h>
|
||||
#include <framework/input/mouse.h>
|
||||
#endif
|
||||
|
||||
GraphicalApplication g_app;
|
||||
@@ -48,6 +49,8 @@ void GraphicalApplication::init(std::vector<std::string>& args)
|
||||
g_window.setOnInputEvent(std::bind(&GraphicalApplication::inputEvent, this, std::placeholders::_1));
|
||||
g_window.setOnClose(std::bind(&GraphicalApplication::close, this));
|
||||
|
||||
g_mouse.init();
|
||||
|
||||
// initialize ui
|
||||
g_ui.init();
|
||||
|
||||
@@ -87,6 +90,8 @@ void GraphicalApplication::terminate()
|
||||
g_sounds.terminate();
|
||||
#endif
|
||||
|
||||
g_mouse.terminate();
|
||||
|
||||
// terminate graphics
|
||||
m_foreground = nullptr;
|
||||
g_graphics.terminate();
|
||||
|
||||
Reference in New Issue
Block a user