2021-03-16 07:17:43 +00:00
|
|
|
// Project64 - A Nintendo 64 emulator
|
2021-05-18 11:51:36 +00:00
|
|
|
// https://www.pj64-emu.com/
|
2021-03-16 07:17:43 +00:00
|
|
|
// Copyright(C) 2001-2021 Project64
|
|
|
|
// Copyright(C) 2014 Bobby Smiles
|
|
|
|
// Copyright(C) 2009 Richard Goedeken
|
|
|
|
// Copyright(C) 2002 Hacktarux
|
|
|
|
// GNU/GPLv2 licensed: https://gnu.org/licenses/gpl-2.0.html
|
|
|
|
|
2016-04-28 07:09:44 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-03-16 05:21:03 +00:00
|
|
|
// Macro for unused variable warning suppression
|
2016-04-28 07:09:44 +00:00
|
|
|
#ifdef __GNUC__
|
|
|
|
# define UNUSED(x) UNUSED_ ## x __attribute__((__unused__))
|
|
|
|
#else
|
|
|
|
# define UNUSED(x) /* x */
|
|
|
|
#endif
|
|
|
|
|
2021-03-16 05:21:03 +00:00
|
|
|
// Macro for inline keyword
|
2016-04-28 07:09:44 +00:00
|
|
|
#ifdef _MSC_VER
|
|
|
|
#define inline __inline
|
|
|
|
#endif
|
|
|
|
|
2021-03-16 05:21:03 +00:00
|
|
|
// DLL function linking
|
2016-04-28 07:09:44 +00:00
|
|
|
#if defined(_WIN32)
|
|
|
|
#define EXPORT extern "C" __declspec(dllexport)
|
|
|
|
#define CALL __cdecl
|
|
|
|
#else
|
|
|
|
#define EXPORT extern "C" __attribute__((visibility("default")))
|
|
|
|
#define CALL
|
|
|
|
#endif
|
|
|
|
|
2021-03-16 05:21:03 +00:00
|
|
|
// Plugin types
|
2016-04-28 07:09:44 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
PLUGIN_TYPE_RSP = 1,
|
|
|
|
PLUGIN_TYPE_GFX = 2,
|
|
|
|
PLUGIN_TYPE_AUDIO = 3,
|
|
|
|
PLUGIN_TYPE_CONTROLLER = 4,
|
|
|
|
};
|
|
|
|
|
2021-03-16 05:21:03 +00:00
|
|
|
// Structures
|
2016-04-28 07:09:44 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
2021-03-16 05:21:03 +00:00
|
|
|
uint16_t Version; // Should be set to 0x0101
|
|
|
|
uint16_t Type; // Set to PLUGIN_TYPE_RSP
|
|
|
|
char Name[100]; // Name of the DLL
|
2016-04-28 07:09:44 +00:00
|
|
|
|
2021-03-16 05:21:03 +00:00
|
|
|
// If DLL supports memory, these memory options then set them to TRUE or FALSE if it does not support it
|
|
|
|
int NormalMemory; // A normal BYTE array
|
|
|
|
int MemoryBswaped; // A normal BYTE array where the memory has been pre-bswap'd on a DWORD (32-bits) boundary
|
2016-04-28 07:09:44 +00:00
|
|
|
} PLUGIN_INFO;
|