diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-10-19 05:17:48 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-10-19 05:17:48 +0300 |
commit | b50a786c2758a34eff01a491ef103bd5a053ba90 (patch) | |
tree | ecc804a103e8154cf29765d2bfa28be99ef5e031 /core/main.cpp | |
parent | a5b11748c6b322a245b2d2352979bf199aa31afd (diff) |
do not use wxwidgets in core, boost and ace choosen for core development
Diffstat (limited to 'core/main.cpp')
-rw-r--r-- | core/main.cpp | 21 |
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) + |