// Detect It Easy: detection rule file
// Author: BJNFNE <bjnfne@web.de>

// https://github.com/dolphin-emu/dolphin/blob/500728360cd177466f699962b441363cd1dd9ed7/docs/WiaAndRvz.md
meta("archive", "RVZ");

function detect() {
    if (Binary.compare("'RVZ'")) {
        var gameId = Binary.getString(88, 6).trim();

        if (/^[A-Z0-9]{6}$/.test(gameId)) {
            if (X.isVerbose()) sOptions = "GameID: " + gameId;
            bDetected = true;
        }
    }

    return result();
}
