From 5560448bb78ed865aeb77f62cf85a2aed302779d Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 29 Jul 2018 12:16:17 +0800 Subject: *update --- src/libjin/Core/Game.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libjin/Core/Game.cpp') diff --git a/src/libjin/Core/Game.cpp b/src/libjin/Core/Game.cpp index ffd8015..929cc07 100644 --- a/src/libjin/Core/Game.cpp +++ b/src/libjin/Core/Game.cpp @@ -19,6 +19,7 @@ namespace core void Game::run() { + SAFECALL(_onLoad); Window* wnd = Window::get(); const int FPS = wnd ? wnd->getFPS() : 60; const int MS_PER_UPDATE = 1000.0f / FPS; @@ -59,6 +60,7 @@ namespace core _onEvent = s->eventHandler; _onUpdate = s->updater; _onDraw = s->drawer; + _onLoad = s->loader; return true; } -- cgit v1.1-26-g67d0