// Detect It Easy: detection rule file
// Author: Jason Hood <jadoxa@yahoo.com.au>

meta("extender", "DOS/4G");

function detect() {
    if (MSDOS.isSignaturePresent(0, Math.min(1024, MSDOS.getSize()), "'DOS/4G'")) {
        bDetected = true;
    } else if (MSDOS.isSignaturePresent(0, Math.min(1024, MSDOS.getSize()), "'DOS4GW'") ||
        MSDOS.isSignaturePresent(MSDOS.getNEOffset() - 1024, 1024, "'dos4gw'")) {
        sName += 'W';
        bDetected = true;
    }

    return result();
}