getFileData

Get the unencrypted and uncompressed data of a file inside the input grf.

This function will always allocate new memory and always call the decrypting and uncompressing routines. Means the returned data is not stored anywhere.

Parameters

file GRFFile

The metadata about the file to be read

Return Value

Type: ubyte[]

The unencrypted and uncompressed file data

Meta