コード例 #1
0
void KeyBoardPreview::setVariant(QString variant) {
    this->variant = variant;

    if (!loadCodes())
        return;

    loadInfo();
    repaint();
}
コード例 #2
0
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();
}
コード例 #3
0
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();
}