Difference between revisions of "Mupen64Plus v2.0 Core Basic"
(Created page with "Mupen64Plus v2.0 API = Mupen64Plus v2.0 Basic Core API = Most libmupen64plus functions return an <tt>m64p_error</tt> return code, which is...") |
(No difference)
|
Latest revision as of 21:46, 21 July 2015
Mupen64Plus v2.0 Basic Core API
Most libmupen64plus functions return an m64p_error return code, which is an enumerated type defined in m64p_types.h. Front-end code should check the return value of each call to a libmupen64plus function.
Prototype | m64p_error PluginGetVersion(m64p_plugin_type *PluginType, int *PluginVersion, int *APIVersion, const char **PluginNamePtr, int *Capabilities) |
Input Parameters | PluginType Pointer to an enumerated type to store the plugin type. The value M64PLUGIN_CORE will always be stored. PluginVersion Pointer to an integer to store the version number of the Mupen64Plus core. Version number 2.1.3 would be stored as 0x00020103. |
Usage | This function retrieves version information from the core library. This function is the same for the core library and the plugins, so that a front-end may examine all shared libraries in a directory and determine their types. Any of the input parameters may be set to NULL and this function will succeed but won't return the corresponding information. |
Prototype | m64p_error CoreGetAPIVersions(int *ConfigVersion, int *DebugVersion, int *VidextVersion, int *ExtraVersion) |
Input Parameters | ConfigVersion Pointer to an integer to store the version number of the Config API exported by the Mupen64plus core library. DebugVersion Pointer to an integer to store the version number of the Debug API exported by the Mupen64plus core library. |
Usage | This function retrieves API version information from the core library. This function may be used by either the front-end application or any plugin modules. Any of the input parameters may be set to NULL and this function will succeed but won't return the corresponding information. |
Prototype | const char * CoreErrorMessage(m64p_error ReturnCode) |
Input Parameters | ReturnCode Enumerated type containing an error code. |
Usage | This function returns a pointer to a NULL-terminated string giving a human-readable description of the error. |