mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
ref: refactoring treads, check local update instructor
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user