// Detect It Easy: detection rule file
// Author: horsicq <horsicq@gmail.com>

meta("format", "Universal Disk Image Format");

function detect() {
    if (Binary.compare("7801730d62626060")) {
        sOptions = "read-only zlib-compressed";
        bDetected = true;
    } else if (Binary.compare("45520200") && Binary.compare("'disk image'", 0x410)) {
        sOptions = "read/write";
        bDetected = true;
    }

    return result();
}