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

// https://en.wikipedia.org/wiki/Warlords_Battlecry_III
meta("format", "XCR");

function detect() {
    if (Binary.compare("'xcr File'")) {
        var versionNumber = Binary.getString(9, 4).trim();

        if (/^[0-9/.]{4}$/.test(versionNumber)) {
            sVersion = versionNumber;
            bDetected = true;
        }
    }

    return result();
}