mirror of
https://github.com/edubart/otclient.git
synced 2025-12-21 07:57:12 +01:00
texture manager with weak ptr
This commit is contained in:
20
src/main.cpp
20
src/main.cpp
@@ -105,17 +105,21 @@ int main(int argc, const char *argv[])
|
||||
|
||||
// init engine
|
||||
g_engine.init();
|
||||
boost::scoped_ptr<MenuState> menuState(new MenuState);
|
||||
g_engine.changeState(menuState.get());
|
||||
|
||||
Platform::showWindow();
|
||||
//Platform::hideMouseCursor();
|
||||
// state scope
|
||||
{
|
||||
boost::scoped_ptr<MenuState> menuState(new MenuState);
|
||||
g_engine.changeState(menuState.get());
|
||||
|
||||
// main loop, run everything
|
||||
g_engine.run();
|
||||
Platform::showWindow();
|
||||
//Platform::hideMouseCursor();
|
||||
|
||||
// terminate stuff
|
||||
g_engine.terminate();
|
||||
// main loop, run everything
|
||||
g_engine.run();
|
||||
|
||||
// terminate stuff
|
||||
g_engine.terminate();
|
||||
}
|
||||
|
||||
// save configurations before exiting
|
||||
saveConfigs();
|
||||
|
||||
Reference in New Issue
Block a user