odd_load_binary¶
Syntax¶
odd_load_binary(filename)
Parameters¶
| Name | Description |
|---|---|
| filename | The name of the file to load. |
Returns¶
Binary: The reference to the binary file instance, typically a Real. This should be stored in a variable, and cleaned up by odd_unload_binary later.
Description¶
This function creates a new binary file instance, given a file name. The file must be visible to GameMaker’s sandboxed filesystem.
Attention
The value of the function should be stored in a variable, and cleaned up by odd_unload_binary later. This will free the memory used, preventing possible memory leaks.
Example¶
var binary = odd_load_binary("english.opdac");
// ...
This example would create a new binary file instance from an ODD binary file named “english.opdac”. The variable binary would contain the reference to the binary file instance, which can be used by other functions.