You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Fix version check for GDExtension
(cherry picked from commit 97ef4a0536)
This commit is contained in:
committed by
Yuri Sizov
parent
45718ef635
commit
4734295fd1
@@ -603,12 +603,13 @@ Ref<Resource> GDExtensionResourceLoader::load(const String &p_path, const String
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool compatible = true;
|
bool compatible = true;
|
||||||
if (VERSION_MAJOR < compatibility_minimum[0]) {
|
// Check version lexicographically.
|
||||||
compatible = false;
|
if (VERSION_MAJOR != compatibility_minimum[0]) {
|
||||||
} else if (VERSION_MINOR < compatibility_minimum[1]) {
|
compatible = VERSION_MAJOR > compatibility_minimum[0];
|
||||||
compatible = false;
|
} else if (VERSION_MINOR != compatibility_minimum[1]) {
|
||||||
} else if (VERSION_PATCH < compatibility_minimum[2]) {
|
compatible = VERSION_MINOR > compatibility_minimum[1];
|
||||||
compatible = false;
|
} else {
|
||||||
|
compatible = VERSION_PATCH >= compatibility_minimum[2];
|
||||||
}
|
}
|
||||||
if (!compatible) {
|
if (!compatible) {
|
||||||
if (r_error) {
|
if (r_error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user