mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[win-linux] updatesvc: add log support for portable version
This commit is contained in:
@ -59,6 +59,8 @@ int main(int argc, char *argv[])
|
||||
if (argc > 1) {
|
||||
if (strcmp(argv[1], "--run-as-app") == 0) {
|
||||
NS_Utils::parseCmdArgs(argc, argv);
|
||||
if (NS_Utils::cmdArgContains("--log"))
|
||||
NS_Logger::AllowWriteLog();
|
||||
std::locale::global(std::locale(""));
|
||||
Translator lang(NS_Utils::GetAppLanguage(), "/langs/langs.iss");
|
||||
CSocket socket(0, INSTANCE_SVC_PORT);
|
||||
|
||||
@ -99,6 +99,8 @@ int __cdecl _tmain (int argc, TCHAR *argv[])
|
||||
if (lstrcmpi(argv[1], _T("--run-as-app")) == 0) {
|
||||
NS_Utils::setRunAsApp();
|
||||
NS_Utils::parseCmdArgs(argc, argv);
|
||||
if (NS_Utils::cmdArgContains(_T("--log")))
|
||||
NS_Logger::AllowWriteLog();
|
||||
std::locale::global(std::locale(""));
|
||||
Translator lang(NS_Utils::GetAppLanguage().c_str(), IDT_TRANSLATIONS);
|
||||
CSocket socket(0, INSTANCE_SVC_PORT);
|
||||
|
||||
Reference in New Issue
Block a user