1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-08 00:34:57 +03:00

separte log directory and database(config) directory

@ was an alias for exedir. To separate log directory and
database(config) directory, @ is now an alias for logdir and $ is an
alias for dbdir.
This commit is contained in:
Koichiro IWAO
2019-09-11 13:34:09 +09:00
parent 01abdedc45
commit c64674479d
10 changed files with 37 additions and 25 deletions

View File

@ -2122,15 +2122,21 @@ void InnerFilePathW(wchar_t *dst, UINT size, wchar_t *src)
return;
}
if (src[0] != L'@')
if (src[0] == L'@')
{
NormalizePathW(dst, size, src);
wchar_t dir[MAX_SIZE];
GetLogDirW(dir, sizeof(dir));
ConbinePathW(dst, size, dir, &src[1]);
}
else if (src[0] == L'$')
{
wchar_t dir[MAX_SIZE];
GetDbDirW(dir, sizeof(dir));
ConbinePathW(dst, size, dir, &src[1]);
}
else
{
wchar_t dir[MAX_SIZE];
GetExeDirW(dir, sizeof(dir));
ConbinePathW(dst, size, dir, &src[1]);
NormalizePathW(dst, size, src);
}
}
void InnerFilePath(char *dst, UINT size, char *src)