FileOpener

FileOpener
Declaration
class FileOpener : public FileOpenerBase;
Description

FileOpener is a user overridable interface used for opening files. Developers can implement this class and install it on Loader if they need to load files from game-specific pack files or through non-standard file system APIs. GFx will call the OpenFile virtual function whenever it needs to open a new file. When overriding this function developers may also need to implement the File interface used for accessing file data. 

As GFx shares loaded data based on file path and its state bindings, file open operation can often be bypassed on subsequent load requests. For this reason we do not recommend performing file name or path substitution by installing this state. If file name or path needs to be replaced, URLBuilder state should be used instead. 

FileOpener is a binding state, meaning that it is associated with any movie it loads at the file of Loader::CreateMovie call. Using different file openers, objects will yield different movie pointers for the same file name.

Methods
Method 
Description 
Opens a file based on the specified path, returning a File object. 
Opens a file by relying on OpenFile, but with a customizable log. If the pointer is null, the log will receive error messages on failure. 
Returns last modified date/time required for file change detection. 
File

GFx_Loader.h