Elite Plus Commander saved game file
application/coreldraw
Magic Bytes
Offset: 0
52 49 46 46
The Elite Plus Commander saved game file is a legacy binary format developed by MicroProse for the 1991 space trading simulation game Elite Plus. This format functions as a persistent data container for user progress, archiving specific gameplay variables such as starship configurations, financial assets, and navigational coordinates. As an obsolete artifact from the MS-DOS era, it poses no modern security risks but requires compatible emulation environments to be accessed or modified.
Validation Code
How to validate .cdr files in Python
Python
def is_cdr(file_path: str) -> bool:
"""Check if file is a valid CDR by magic bytes."""
signature = bytes([0x52, 0x49, 0x46, 0x46])
with open(file_path, "rb") as f:
return f.read(4) == signature
How to validate .cdr files in Node.js
Node.js
function isCDR(buffer: Buffer): boolean {
const signature = Buffer.from([0x52, 0x49, 0x46, 0x46]);
return buffer.subarray(0, 4).equals(signature);
}
Go
func IsCDR(data []byte) bool {
signature := []byte{0x52, 0x49, 0x46, 0x46}
if len(data) < 4 {
return false
}
return bytes.Equal(data[:4], signature)
}
API Endpoint
GET
/api/v1/cdr
curl https://filesignature.org/api/v1/cdr