Check if it has to be possible to update hardware (JSONs, DC). If yes, then exit().

This commit is contained in:
Gerhard Hoffmann 2024-05-03 13:31:04 +02:00
parent e5ab9b98cd
commit 63dc70dda9

View File

@ -130,8 +130,10 @@ int main(int argc, char *argv[]) {
if (!QDir(plugInDir).exists()) {
qCritical() << plugInDir
<< "does not exists, but has to contain dc-library";
if (noUpdatePsaHardware == false) {
exit(-1);
}
}
// before loading the library, delete all possible shared memory segments
#if defined Q_OS_LINUX || defined Q_OS_UNIX