Jelajahi Sumber

Change structure order for godot nim compatibility

Konstantin Zaitsev 8 tahun lalu
induk
melakukan
28dc30cd59
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      modules/gdnative/include/gdnative/gdnative.h

+ 1 - 1
modules/gdnative/include/gdnative/gdnative.h

@@ -237,12 +237,12 @@ godot_variant GDAPI godot_method_bind_call(godot_method_bind *p_method_bind, god
 struct godot_gdnative_api_struct; // Forward declaration
 struct godot_gdnative_api_struct; // Forward declaration
 
 
 typedef struct {
 typedef struct {
-	const struct godot_gdnative_api_struct *api_struct;
 	godot_bool in_editor;
 	godot_bool in_editor;
 	uint64_t core_api_hash;
 	uint64_t core_api_hash;
 	uint64_t editor_api_hash;
 	uint64_t editor_api_hash;
 	uint64_t no_api_hash;
 	uint64_t no_api_hash;
 	godot_object *gd_native_library; // pointer to GDNativeLibrary that is being initialized
 	godot_object *gd_native_library; // pointer to GDNativeLibrary that is being initialized
+	const struct godot_gdnative_api_struct *api_struct;
 } godot_gdnative_init_options;
 } godot_gdnative_init_options;
 
 
 typedef struct {
 typedef struct {