RecompExternalPython for N64Recompiled 2.0.0
Loading...
Searching...
No Matches

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.

Detailed Description

Functions to access nrm files read-only as ZipFile objects.

Function Documentation

◆ REPY_GetNrmZipFile()

REPY_Handle REPY_GetNrmZipFile ( )
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.

Returns
REPY_Handle

◆ 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.

Parameters
filepatha null-terminated path string to a zip file.
Returns
a REPY_Handle to a Python zipfile.ZipFile instance.