264265266267268269270271272273274
switch (type) { case t_START: resource.start(); break; case t_SHUTDOWN: resource.shutdown(tasks); break; case t_SHUTDOWN_SAVE: resource.shutdownSave(tasks); break; case t_PAUSE: