getFileData

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

This function will allocate new memory and always call the decrypting and uncompressing routines _unless_ cache is set to true.

Parameters

grf GRF

The grf to read the file from

file GRFFile

The metadata about the file to be read

grfHandle File

Use this file handle instead of the one from grf

useCache Flag!"useCache"

Return the data from cache if it exists

Return Value

Type: ubyte[]

The unencrypted and uncompressed file data

Meta