mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-05 08:28:57 +01:00
Core/Common: Compile ServiceWin32 as part of common project instead of directly adding its source files to both server executables
This commit is contained in:
@@ -111,12 +111,13 @@ int main(int argc, char** argv)
|
||||
auto protobufHandle = Trinity::make_unique_ptr_with_deleter(&dummy, [](void*) { google::protobuf::ShutdownProtobufLibrary(); });
|
||||
|
||||
#if TRINITY_PLATFORM == TRINITY_PLATFORM_WINDOWS
|
||||
Trinity::Service::Init(serviceLongName, serviceName, serviceDescription, &main, &m_ServiceStatus);
|
||||
if (winServiceAction == "install")
|
||||
return WinServiceInstall() ? 0 : 1;
|
||||
return Trinity::Service::Install();
|
||||
if (winServiceAction == "uninstall")
|
||||
return WinServiceUninstall() ? 0 : 1;
|
||||
return Trinity::Service::Uninstall();
|
||||
if (winServiceAction == "run")
|
||||
return WinServiceRun() ? 0 : 1;
|
||||
return Trinity::Service::Run();
|
||||
#endif
|
||||
|
||||
std::string configError;
|
||||
|
||||
Reference in New Issue
Block a user