ref: refactoring treads, check local update instructor

This commit is contained in:
semenov
2024-12-17 17:22:33 +03:00
parent 2dfd76ec18
commit 066a90691c
53 changed files with 2292 additions and 1558 deletions

View File

@@ -33,15 +33,26 @@ QString Tools::createReceiveFullPath(QString path, StreamingVersionData *version
if(pos == -1)
{
pos = path.indexOf(version->getViewName());
localPath = path.remove(0,pos + version->getViewName().length());
localPath.prepend(streamingAssetsPath);
if(pos == -1)
{
fullPath = QDir::currentPath() + path;
}
else
{
//StreamingAssets section
localPath = path.remove(0,pos + version->getViewName().length());
localPath.prepend(streamingAssetsPath);
}
}
else
{
//build section
localPath = path.remove(0,--pos);
fullPath = QDir::currentPath() + localPath;
}
fullPath = QDir::currentPath() + localPath;
qDebug() << "CLIENT: localPath" << localPath;