Skip to content

Commit d755f2f

Browse files
authored
Merge pull request #23 from Spartan322/4.3-sync/4eafef8
Sync with tag redot-4.3.1-rc.1 (Redot-Engine/redot-engine@4eafef8)
2 parents 5ad9003 + 40b4b10 commit d755f2f

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

gdextension/extension_api.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"version_major": 4,
44
"version_minor": 3,
55
"version_patch": 1,
6-
"version_status": "beta",
6+
"version_status": "rc",
77
"version_status_version": 1,
88
"version_build": "official",
9-
"version_full_name": "Redot Engine v4.3.1.beta.1.official"
9+
"version_full_name": "Redot Engine v4.3.1.rc.1.official"
1010
},
1111
"builtin_class_sizes": [
1212
{

gdextension/gdextension_interface.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,19 @@ typedef struct {
752752
const char *string;
753753
} GDExtensionGodotVersion;
754754

755+
typedef struct {
756+
uint32_t major;
757+
uint32_t minor;
758+
uint32_t patch;
759+
uint32_t hex; // Full version encoded as hexadecimal with one byte (2 hex digits) per number (e.g. for "3.1.12" it would be 0x03010C)
760+
const char *status; // (e.g. "stable", "beta", "rc")
761+
uint32_t status_version;
762+
const char *build; // (e.g. "custom_build")
763+
const char *hash; // Full Git commit hash.
764+
uint64_t timestamp; // Git commit date UNIX timestamp in seconds, or 0 if unavailable.
765+
const char *string; // (e.g. "Redot v3.1.4.stable.official.mono")
766+
} GDExtensionRedotVersion;
767+
755768
/**
756769
* @name get_godot_version
757770
* @since 4.1
@@ -762,6 +775,16 @@ typedef struct {
762775
*/
763776
typedef void (*GDExtensionInterfaceGetGodotVersion)(GDExtensionGodotVersion *r_godot_version);
764777

778+
/**
779+
* @name get_redot_version
780+
* @since 4.3
781+
*
782+
* Gets the Redot version that the GDExtension was loaded into.
783+
*
784+
* @param r_redot_version A pointer to the structure to write the version information into.
785+
*/
786+
typedef void (*GDExtensionInterfaceGetRedotVersion)(GDExtensionRedotVersion *r_redot_version);
787+
765788
/* INTERFACE: Memory */
766789

767790
/**

0 commit comments

Comments
 (0)