APTR handle = hw_FOpen(STRPTR name, int mode);
HWFOPENMODE_READWRITE. Please note that this flag is actually set to 0 for compatibility reasons. This means that
hw_FOpen()cannot use the bitwise AND-operator to check if it is set. Instead, it will check if either
HWFOPENMODE_READWRITEis set. If both aren't set, then it will assume that
HWFOPENMODE_READ_LEGACYis set and will open the file for reading. You should only use this flag if you also need to target Hollywood 5. For Hollywood 6.0 and higher, use
HWFOPENMODE_READ_NEWinstead (see below).
hw_FOpen()will create it first. This is mutually exclusive with
HWFOPENMODE_READWRITE. Please note that this flag requires Hollywood 6.0. If you want to open files for reading with earlier Hollywood versions, use
HWFOPENMODE_READ_LEGACY. See above for details. (V6.0)
HWFOPENFLAGS_NOSEEKflag set. Emulation of the seek functionality is done by simply reading bytes from the file until the desired seek position has been reached. This is of course highly inefficient for large seek distances so it should only be used on small files or to bridge small seek distances. (V6.0)
nameto always be in UTF-8 encoding. By default, Hollywood expects the string to be in the encoding of the current script. You can override this behaviour by setting
This function is thread-safe.