mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
48 lines
924 B
C++
48 lines
924 B
C++
#include "PluginAPI.h"
|
|
#include "Types.h"
|
|
|
|
extern "C" {
|
|
|
|
EXPORT int CALL RomOpen(void)
|
|
{
|
|
api().RomOpen();
|
|
return 1;
|
|
}
|
|
|
|
EXPORT m64p_error CALL PluginGetVersion(
|
|
m64p_plugin_type * _PluginType,
|
|
int * _PluginVersion,
|
|
int * _APIVersion,
|
|
const char ** _PluginNamePtr,
|
|
int * _Capabilities
|
|
)
|
|
{
|
|
return api().PluginGetVersion(_PluginType, _PluginVersion, _APIVersion, _PluginNamePtr, _Capabilities);
|
|
}
|
|
|
|
EXPORT m64p_error CALL PluginStartup(
|
|
m64p_dynlib_handle CoreLibHandle,
|
|
void *Context,
|
|
void (*DebugCallback)(void *, int, const char *)
|
|
)
|
|
{
|
|
return api().PluginStartup(CoreLibHandle);
|
|
}
|
|
|
|
EXPORT m64p_error CALL PluginShutdown(void)
|
|
{
|
|
return api().PluginShutdown();
|
|
}
|
|
|
|
EXPORT void CALL ReadScreen2(void *dest, int *width, int *height, int front)
|
|
{
|
|
api().ReadScreen2(dest, width, height, front);
|
|
}
|
|
|
|
EXPORT void CALL SetRenderingCallback(void (*callback)(int))
|
|
{
|
|
api().SetRenderingCallback(callback);
|
|
}
|
|
|
|
} // extern "C"
|