summaryrefslogtreecommitdiff
path: root/core/main.cpp
blob: b0e381dc6200ee0dd0aef7cfbe7981da877622c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

#include "commonheaders.h"
#include "compatibility.h"

std::list<plugin*> plugins;
boost::mutex plugin_list_mutex;
std::list<service*> services;
boost::mutex service_list_mutex;
void CreateServiceFunction(const char* name, SERVICE svc);
void* CallService(const char *,void*);
int ServiceExists(const char *);


PLUGINLINK pluglink = {&CreateServiceFunction, &CallService, &ServiceExists};

class EvilCore: public wxApp
{
public:
    virtual bool OnInit();
};

bool EvilCore::OnInit()
{
    void load_modules();
    void run_plugins();
    load_modules();
    run_plugins();
    while(true)
    sleep(10);
    return 0;
}
IMPLEMENT_APP(EvilCore)