Quote:
Originally Posted by moczymorda
Where is this:
# Added configuration file;
# Added plugin support. (for site scripts)
|
Plugin.dll should export 3 functions
Code:
; Plugin.def : Declares the module parameters for the DLL.
LIBRARY "Plugin"
EXPORTS
; Explicit exports can go here
PushServerList = PushServerList
OnDisconnect = OnDisconnect
OnUnderInspection = OnUnderInspection
Code:
#include <vector>
using namespace std;
#pragma pack(push, 1)
struct SServerState
{
unsigned short ID;
CString Name;
unsigned short Current;
unsigned short Max;
int Left;
bool Checked;
};
#pragma pack(pop)
typedef vector<SServerState> ServerList;
void PushServerList(const ServerList& list) ;
void OnUnderInspection(void) ;
void OnDisconnect(void) ;
config.ini
Code:
[ServerList]
; 30 seconds
Interval = 30
Auto =1
version = 129
Reconnect = 60