feat: loading base version

This commit is contained in:
semenov
2024-12-16 16:36:43 +03:00
parent 31e42a97e4
commit 448dbdbd6d
68 changed files with 1895 additions and 373 deletions

View File

@@ -24,7 +24,31 @@ QString Tools::createLocalPath(QString path)
return localPath;
}
QString Tools::createFullPath(QString path)
QString Tools::createReceiveFullPath(QString path, StreamingVersionData *version)
{
QString fullPath;
QString localPath;
qint8 pos = path.indexOf("Application");
if(pos == -1)
{
pos = path.indexOf(version->getViewName());
localPath = path.remove(0,pos + version->getViewName().length());
localPath.prepend(streamingAssetsPath);
}
else
{
localPath = path.remove(0,--pos);
}
fullPath = QDir::currentPath() + localPath;
qDebug() << "CLIENT: localPath" << localPath;
return fullPath;
}
QString Tools::createSendFullPath(QString path)
{
QString fullPath;
qint8 pos = path.indexOf("Application");