1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

add dedicated method to get logs path

This commit is contained in:
Andrey Filipenkov
2022-09-17 16:56:01 +03:00
committed by Andrii Danylchenko
parent 03b4ea71ba
commit 99af5bbe4c
6 changed files with 11 additions and 4 deletions

View File

@@ -685,7 +685,7 @@ void CServerHandler::threadRunServer()
{
#ifndef VCMI_ANDROID
setThreadName("CServerHandler::threadRunServer");
const std::string logName = (VCMIDirs::get().userCachePath() / "server_log.txt").string();
const std::string logName = (VCMIDirs::get().userLogsPath() / "server_log.txt").string();
std::string comm = VCMIDirs::get().serverPath().string()
+ " --port=" + getDefaultPortStr()
+ " --run-by-client"