summaryrefslogtreecommitdiff
path: root/core/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/main.cpp')
-rw-r--r--core/main.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/core/main.cpp b/core/main.cpp
index b0e381d..a724bc8 100644
--- a/core/main.cpp
+++ b/core/main.cpp
@@ -1,6 +1,5 @@
#include "commonheaders.h"
-#include "compatibility.h"
std::list<plugin*> plugins;
boost::mutex plugin_list_mutex;
@@ -13,21 +12,23 @@ int ServiceExists(const char *);
PLUGINLINK pluglink = {&CreateServiceFunction, &CallService, &ServiceExists};
-class EvilCore: public wxApp
-{
-public:
- virtual bool OnInit();
-};
-
-bool EvilCore::OnInit()
+#ifdef _WIN32
+HINSTANCE hInst;
+int __stdcall WinMain( __in HINSTANCE hInstance, __in_opt HINSTANCE hPrevInstance, __in_opt LPSTR lpCmdLine, __in int nShowCmd )
+#else
+int main()
+#endif
{
+#ifdef _WIN32
+ hInst = hInstance;
+#endif
void load_modules();
void run_plugins();
load_modules();
run_plugins();
while(true)
- sleep(10);
+ boost::this_thread::sleep(boost::posix_time::seconds(10)); //warning from compiller on this string can be safely ignored
return 0;
}
-IMPLEMENT_APP(EvilCore)
+