mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
feat: loading base version
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user