feat: load to server block

This commit is contained in:
semenov
2025-01-17 16:47:22 +03:00
parent 4b9ee1738a
commit 91a4b04f05
11 changed files with 99 additions and 17 deletions

View File

@@ -168,6 +168,16 @@ void RecognizeSystem::recognize()
QFile file(filePath);
// //ПРОВЕРКА НА ИЗМЕНЕНИЕ БАЗОВОЙ ВЕРСИИ
// bool check = checkIsChangeable();
// bool check2 = checkNonStaticData(filePath);
// if(!check && check2)
// {
// packetType = PacketType::TYPE_NONE;
// sendSystem->sendNotify(commandTryBaseChange);
// mutex->unlock();
// return;
// }
if (file.exists())
{
@@ -239,6 +249,17 @@ void RecognizeSystem::recognize()
break;
}
// //ПРОВЕРКА НА ИЗМЕНЕНИЕ БАЗОВОЙ ВЕРСИИ
// bool check = checkIsChangeable();
// bool check2 = checkNonStaticData(filePath);
// if(!check && check2)
// {
// sendSystem->sendNotify(commandTryBaseChange);
// packetType = PacketType::TYPE_NONE;
// mutex->unlock();
// return;
// }
QFile file(filePath);
QFileInfo fileInfo(file);
@@ -412,6 +433,18 @@ QString RecognizeSystem::createFullPath(QString path)
return fullPath;
}
bool RecognizeSystem::checkIsChangeable()
{
return updateController->getCurrentVersion()->getIsChangeable();
}
bool RecognizeSystem::checkNonStaticData(QString path)
{
if(path.contains(sharedDataFolderName)) return true;
return false;
}
RecognizeSystem::~RecognizeSystem()
{