void ckSysMgr::createAfterMem(const char* title, u16 width, u16 height, u16 sys_flag) { if (!title || width == 0 || height == 0) { ckThrow(ExceptionInvalidArgument); } destroyBeforeMem(); m_instance = ckNew(ckSysMgr)(title, width, height, sys_flag); }
void fsMgr::createAfterMem(const char* title, u16 width, u16 height, u16 aim_fps, u16 sys_flag) { if (!title || width == 0 || height == 0) { fsThrow(ExceptionInvalidArgument); } destroyBeforeMem(); m_instance = fsNew(fsMgr)(title, width, height, sys_flag); fsTaskMgr::createAfterSys(aim_fps); fsInputMgr::createAfterTask(); fsPhysicsMgr::createAfterTask(); fsResMgr::createAfterTask(); fsScriptMgr::createAfterRes(); fsDrawMgr::createAfterRes(); fsSoundMgr::createAfterRes(); fsDebugMgr::createLast(); }