[Auth\Worldserver] Use boost to load console arguments. (Added a few style changes and cmake fix)

Conflicts:
	src/server/worldserver/Main.cpp
This commit is contained in:
Chaplain authored and leak committed 2014-07-15 18:15:55 +02:00
1 parent ecde28d1c1
commit 68398a559e
6 files changed
+102 -108

No files matched your search

+5 -1
View File
@@ -60,7 +60,7 @@ bool WinServiceInstall()
if (GetModuleFileName( 0, path, sizeof(path)/sizeof(path[0]) ) > 0)
{
SC_HANDLE service;
std::strcat(path, " --service");
std::strcat(path, " --service run");
service = CreateService(serviceControlManager,
serviceName, // name of service
serviceLongName, // service name to display
@@ -119,6 +119,8 @@ bool WinServiceInstall()
}
CloseServiceHandle(serviceControlManager);
}
printf("Service installed\n");
return true;
}
@@ -143,6 +145,8 @@ bool WinServiceUninstall()
CloseServiceHandle(serviceControlManager);
}
printf("Service uninstalled\n");
return true;
}