ZVISION: Move _cursorManager construction after the folder directories have been registered with SearchMan

This commit is contained in:
richiesams 2013-08-16 12:17:29 -05:00
parent af0a58ecda
commit e0937a12cd

View File

@ -69,7 +69,6 @@ ZVision::ZVision(OSystem *syst, const ZVisionGameDescription *gameDesc)
// Create managers
_scriptManager = new ScriptManager(this);
_renderManager = new RenderManager(_system, _workingWindow, _pixelFormat);
_cursorManager = new CursorManager(this, &_pixelFormat);
debug("ZVision::ZVision");
}
@ -116,6 +115,8 @@ void ZVision::initialize() {
initGraphics(WINDOW_WIDTH, WINDOW_HEIGHT, true, &_pixelFormat);
// CursorManager must be created after all the directories have been added
_cursorManager = new CursorManager(this, &_pixelFormat);
_cursorManager->initialize();
_scriptManager->initialize();