diff options
Diffstat (limited to 'core/main.cpp')
-rw-r--r-- | core/main.cpp | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/core/main.cpp b/core/main.cpp index a724bc8..13de647 100644 --- a/core/main.cpp +++ b/core/main.cpp @@ -8,6 +8,7 @@ boost::mutex service_list_mutex; void CreateServiceFunction(const char* name, SERVICE svc); void* CallService(const char *,void*); int ServiceExists(const char *); +ACE_Log_Msg logger; PLUGINLINK pluglink = {&CreateServiceFunction, &CallService, &ServiceExists}; @@ -16,19 +17,24 @@ PLUGINLINK pluglink = {&CreateServiceFunction, &CallService, &ServiceExists}; HINSTANCE hInst; int __stdcall WinMain( __in HINSTANCE hInstance, __in_opt HINSTANCE hPrevInstance, __in_opt LPSTR lpCmdLine, __in int nShowCmd ) #else -int main() +int ACE_MAIN(int argc, char *argv[]) #endif { #ifdef _WIN32 hInst = hInstance; #endif - void load_modules(); - void run_plugins(); - load_modules(); - run_plugins(); - while(true) + void load_modules(); + void run_plugins(); + logger.log(LM_DEBUG, "Loading plugins...\n"); + load_modules(); + logger.log(LM_DEBUG, "Running plugins...\n"); + run_plugins(); + while(true) + { + logger.log(LM_DEBUG, "Main threas sleeping...\n"); boost::this_thread::sleep(boost::posix_time::seconds(10)); //warning from compiller on this string can be safely ignored - return 0; + } + return 0; } |