Updated shit
All checks were successful
Test compiling project / test (push) Successful in 2m21s

This commit is contained in:
2025-02-17 00:12:50 +01:00
parent 7c4dd280c2
commit 3b1ab2e9e9
9 changed files with 123 additions and 32 deletions

View File

@@ -30,4 +30,13 @@ Configuration getLatestConfiguration(Configuration *configs, int count) {
}
}
return latest;
}
bool isVersionNewer(Version oldVersion, Version newVersion) {
if (newVersion.major > oldVersion.major ||
(newVersion.major == oldVersion.major && newVersion.minor > oldVersion.minor) ||
(newVersion.major == oldVersion.major && newVersion.minor == oldVersion.minor && newVersion.patch > oldVersion.patch)) {
return true;
}
return false;
}