#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#define DLLEXPORT __declspec(dllexport)
#else
#define DLLEXPORT __attribute__((visibility ("default")))
#endif
#ifndef WINAPI
#define WINAPI
#endif
enum class MetaPluginLoadTime {
Never = 0,
Startup,
ChangeLevel,
AnyTime,
AnyPause
};
enum class MetaPluginUnloadReason {
Null = 0,
IniDeleted,
FileNewer,
Command,
CommandForced,
Delayed,
Plugin,
PluginForced,
Reload
};
struct MetaPluginInfo {
const char* interface_version{};
const char* name{};
const char* version{};
const char* date{};
const char* author{};
const char* url{};
const char* log_tag{};
MetaPluginLoadTime loadable{};
MetaPluginLoadTime unloadable{};
};
extern "C" void DLLEXPORT WINAPI GiveFnptrsToDll(void*, void*)
{
}
extern "C" void DLLEXPORT Meta_Init()
{
}
extern "C" int DLLEXPORT Meta_Query(const char*, MetaPluginInfo** plugin_info, void*)
{
static MetaPluginInfo info
{
"5:13",
"Minimum Metamod Plugin",
"0.0.0",
__DATE__,
"",
"",
"",
MetaPluginLoadTime::AnyTime,
MetaPluginLoadTime::AnyTime
};
*plugin_info = &info;
return 1;
}
extern "C" int DLLEXPORT Meta_Attach(void*, void*, void*, void*)
{
return 1;
}
extern "C" int DLLEXPORT Meta_Detach(void*, void*)
{
return 1;
}