修改存图路径到电脑文档路径

This commit is contained in:
yangjiaxuan 2023-01-09 18:53:59 +08:00
parent ee68af887d
commit 7dbc9eecbe
1 changed files with 4 additions and 1 deletions

View File

@ -429,7 +429,10 @@ QString Form_mainInterface::getItemStatusStr(HGUInt status)
QString Form_mainInterface::getCachePath()
{
HGChar cachePath[512];
HGBase_GetConfigPath(cachePath, 512);
HGBase_GetDocumentsPath(cachePath, 512);
HGChar procName[512];
HGBase_GetProcessName(procName, 512);
strcat(cachePath, procName);
strcat(cachePath, "/Cache/");
return getStdFileName(StdStringToUtf8(cachePath).c_str());