diff options
author | chai <chaifix@163.com> | 2018-07-29 12:16:17 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-07-29 12:16:17 +0800 |
commit | 5560448bb78ed865aeb77f62cf85a2aed302779d (patch) | |
tree | 0381def6419d98b9cbf950db21cbe38d555c5688 /src/libjin/Core/Game.cpp | |
parent | e9dcb75fb3cdbabd7152b0303af4dc27b4bcca3d (diff) |
*update
Diffstat (limited to 'src/libjin/Core/Game.cpp')
-rw-r--r-- | src/libjin/Core/Game.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |