aboutsummaryrefslogtreecommitdiff
path: root/src/server/authserver/Main.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-09-15 12:40:54 +0200
committerShauren <shauren.trinity@gmail.com>2025-08-30 22:55:25 +0200
commit7e1e441dfadc157fbba8c05539fad6a5b9525ea4 (patch)
treeb0817a2468bef37a3cf5f742dd3b8ad4a1cd54b1 /src/server/authserver/Main.cpp
parent59e5ddd9670627f305e9b19048942ccd9992851d (diff)
Core/Common: Compile ServiceWin32 as part of common project instead of directly adding its source files to both server executables
(cherry picked from commit 052f2d0a81460ba484c27d05fe34673cf467c75e)
Diffstat (limited to 'src/server/authserver/Main.cpp')
-rw-r--r--src/server/authserver/Main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/server/authserver/Main.cpp b/src/server/authserver/Main.cpp
index fa735217fca..6474b15429e 100644
--- a/src/server/authserver/Main.cpp
+++ b/src/server/authserver/Main.cpp
@@ -103,12 +103,13 @@ int main(int argc, char** argv)
return 0;
#if TRINITY_PLATFORM == TRINITY_PLATFORM_WINDOWS
+ Trinity::Service::Init(serviceLongName, serviceName, serviceDescription, &main, &m_ServiceStatus);
if (winServiceAction == "install")
- return WinServiceInstall() == true ? 0 : 1;
+ return Trinity::Service::Install();
if (winServiceAction == "uninstall")
- return WinServiceUninstall() == true ? 0 : 1;
+ return Trinity::Service::Uninstall();
if (winServiceAction == "run")
- return WinServiceRun() ? 0 : 1;
+ return Trinity::Service::Run();
#endif
std::string configError;