aboutsummaryrefslogtreecommitdiff
path: root/zenserver/zenserver.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-11-29 09:28:18 +0100
committerMartin Ridgers <[email protected]>2021-11-29 09:34:01 +0100
commite7a3e803e499912b8ec686172f7da83bc951dad6 (patch)
tree63bfc34e761bb00276986ee1f058dc3e745796d1 /zenserver/zenserver.cpp
parentMerged main (diff)
downloadzen-e7a3e803e499912b8ec686172f7da83bc951dad6.tar.xz
zen-e7a3e803e499912b8ec686172f7da83bc951dad6.zip
Post-merge fixes
Diffstat (limited to 'zenserver/zenserver.cpp')
-rw-r--r--zenserver/zenserver.cpp23
1 files changed, 11 insertions, 12 deletions
diff --git a/zenserver/zenserver.cpp b/zenserver/zenserver.cpp
index ff0c01f4f..c2d2c1d39 100644
--- a/zenserver/zenserver.cpp
+++ b/zenserver/zenserver.cpp
@@ -767,9 +767,8 @@ private:
zen::LockFile m_LockFile;
};
-ZenEntryPoint::ZenEntryPoint(ZenServerOptions& GlobalOptions, ZenServiceConfig& ServiceConfig)
-: m_GlobalOptions(GlobalOptions)
-, m_ServiceConfig(ServiceConfig)
+ZenEntryPoint::ZenEntryPoint(ZenServerOptions& ServerOptions)
+: m_ServerOptions(ServerOptions)
{
}
@@ -781,7 +780,7 @@ ZenEntryPoint::Run()
sentry_options_t* SentryOptions = sentry_options_new();
sentry_options_set_dsn(SentryOptions, "https://[email protected]/5919284");
- sentry_options_set_database_path(SentryOptions, PathToUtf8(m_GlobalOptions.DataDir / ".sentry-native").c_str());
+ sentry_options_set_database_path(SentryOptions, PathToUtf8(m_ServerOptions.DataDir / ".sentry-native").c_str());
sentry_init(SentryOptions);
auto _ = zen::MakeGuard([] { sentry_close(); });
@@ -915,8 +914,8 @@ ZenEntryPoint::Run()
class ZenWindowsService : public WindowsService
{
public:
- ZenWindowsService(ZenServerOptions& GlobalOptions, ZenServiceConfig& ServiceConfig)
- : m_EntryPoint(GlobalOptions, ServiceConfig)
+ ZenWindowsService(ZenServerOptions& ServerOptions)
+ : m_EntryPoint(ServerOptions)
{
}
@@ -986,13 +985,13 @@ main(int argc, char* argv[])
}
#if ZEN_WITH_TRACE
- if (GlobalOptions.TraceHost.size())
+ if (ServerOptions.TraceHost.size())
{
- TraceInit(GlobalOptions.TraceHost.c_str(), TraceType::Network);
+ TraceInit(ServerOptions.TraceHost.c_str(), TraceType::Network);
}
- else if (GlobalOptions.TraceFile.size())
+ else if (ServerOptions.TraceFile.size())
{
- TraceInit(GlobalOptions.TraceFile.c_str(), TraceType::File);
+ TraceInit(ServerOptions.TraceFile.c_str(), TraceType::File);
}
#endif // ZEN_WITH_TRACE
@@ -1014,12 +1013,12 @@ main(int argc, char* argv[])
ZenWindowsService App(ServerOptions);
return App.ServiceMain();
#else
- if (GlobalOptions.InstallService || GlobalOptions.UninstallService)
+ if (ServerOptions.InstallService || ServerOptions.UninstallService)
{
throw std::runtime_error("Service mode is not supported on this platform");
}
- ZenEntryPoint App(GlobalOptions, ServiceConfig);
+ ZenEntryPoint App(ServerOptions);
return App.Run();
#endif // ZEN_PLATFORM_WINDOWS
}