mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
feat: load to server block
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user