From b50a786c2758a34eff01a491ef103bd5a053ba90 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Tue, 19 Oct 2010 05:17:48 +0300 Subject: do not use wxwidgets in core, boost and ace choosen for core development --- core/main.cpp | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'core/main.cpp') 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 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) + -- cgit v1.2.3