void KeyBoardPreview::setVariant(QString variant) { this->variant = variant; if (!loadCodes()) return; loadInfo(); repaint(); }
void SceneInfoDragonsphere::loadCodes(MSurface &depthSurface, int variant) { File f(Resources::formatName(RESPREFIX_RM, _sceneId, ".DAT")); MadsPack codesPack(&f); Common::SeekableReadStream *stream = codesPack.getItemStream(variant + 1); loadCodes(depthSurface, stream); delete stream; f.close(); }
void SceneInfoDragonsphere::loadCodes(MSurface &depthSurface, int variant) { Common::String ext = Common::String::format(".WW%d", variant); File f(Resources::formatName(RESPREFIX_RM, _sceneId, ext)); MadsPack codesPack(&f); Common::SeekableReadStream *stream = codesPack.getItemStream(0); loadCodes(depthSurface, stream); delete stream; f.close(); }