Functions to access nrm files read-only as ZipFile objects. More...
Functions | |
| REPY_Handle | REPY_GetZipFileFromPath (const char *filepath) |
| Opens a read-only instance of zipfile.ZipFile as indicated by filepath. | |
| REPY_Handle | REPY_GetNrmZipFile () |
| Opens a read-only instance of zipfile.ZipFile for this .nrm file. Provides an easy way to access additional files inside the mod. | |
Functions to access nrm files read-only as ZipFile objects.
|
inline |
Opens a read-only instance of zipfile.ZipFile for this .nrm file. Provides an easy way to access additional files inside the mod.
This function is implemented as inline within the repy_api.h header in order to get the path for the current .nrm file. It wraps the API function REPY_GetZipFileFromPath.
| REPY_Handle REPY_GetZipFileFromPath | ( | const char * | filepath | ) |
Opens a read-only instance of zipfile.ZipFile as indicated by filepath.
This function primarily exists to support the function REPY_GetNrmZipFile, since that needs to be inline in order to work, and having this implemented directly in the REPY external library is slightly more performant than making the corresponding API calls.
| filepath | a null-terminated path string to a zip file. |