[FS] add support for windows ProgramData path when running as service

Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
R4SAS
2022-06-06 18:20:18 +03:00
parent e2718e5a12
commit 690c9f7c6f
2 changed files with 32 additions and 8 deletions

View File

@@ -58,9 +58,7 @@ namespace util
bool Daemon_Singleton::IsService () const
{
bool service = false;
#ifndef _WIN32
i2p::config::GetOption("service", service);
#endif
return service;
}