1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-06-25 22:09:35 +00:00
GLideN64/src/ZilmarPluginAPI.cpp
2018-11-25 18:34:16 +07:00

59 lines
862 B
C++

#ifdef OS_WINDOWS
# include <windows.h>
#else
# include "winlnxdefs.h"
#endif // OS_WINDOWS
#include "PluginAPI.h"
#include "N64.h"
extern "C" {
EXPORT void CALL RomOpen (void)
{
RDRAMSize = 0;
api().RomOpen();
}
EXPORT void CALL CaptureScreen ( char * Directory )
{
api().CaptureScreen(Directory);
}
EXPORT void CALL CloseDLL (void)
{
api().CloseDLL();
}
EXPORT void CALL DllAbout ( HWND hParent )
{
api().DllAbout(/*hParent*/);
}
EXPORT void CALL DllConfig ( HWND hParent )
{
api().DllConfig(hParent);
}
EXPORT void CALL DllTest ( HWND hParent )
{
api().DllTest(hParent);
}
EXPORT void CALL DrawScreen (void)
{
api().DrawScreen();
}
EXPORT void CALL GetDllInfo ( PLUGIN_INFO * PluginInfo )
{
api().GetDllInfo(PluginInfo);
}
EXPORT void CALL ReadScreen (void **dest, long *width, long *height)
{
api().ReadScreen(dest, width, height);
}
}