Skip to content

Commit 46fe0cd

Browse files
committed
Merge branch 'master' into pr/99
# Conflicts: # itest/rust/src/dictionary_test.rs
2 parents f15d606 + e594365 commit 46fe0cd

File tree

23 files changed

+1421
-808
lines changed

23 files changed

+1421
-808
lines changed

godot-codegen/input/gdextension_interface.h

+7-5
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737

3838
#include <stddef.h>
3939
#include <stdint.h>
40-
#include <stdio.h>
4140

4241
#ifndef __cplusplus
4342
typedef uint32_t char32_t;
@@ -415,9 +414,12 @@ typedef struct {
415414
void *(*mem_realloc)(void *p_ptr, size_t p_bytes);
416415
void (*mem_free)(void *p_ptr);
417416

418-
void (*print_error)(const char *p_description, const char *p_function, const char *p_file, int32_t p_line);
419-
void (*print_warning)(const char *p_description, const char *p_function, const char *p_file, int32_t p_line);
420-
void (*print_script_error)(const char *p_description, const char *p_function, const char *p_file, int32_t p_line);
417+
void (*print_error)(const char *p_description, const char *p_function, const char *p_file, int32_t p_line, GDExtensionBool p_editor_notify);
418+
void (*print_error_with_message)(const char *p_description, const char *p_message, const char *p_function, const char *p_file, int32_t p_line, GDExtensionBool p_editor_notify);
419+
void (*print_warning)(const char *p_description, const char *p_function, const char *p_file, int32_t p_line, GDExtensionBool p_editor_notify);
420+
void (*print_warning_with_message)(const char *p_description, const char *p_message, const char *p_function, const char *p_file, int32_t p_line, GDExtensionBool p_editor_notify);
421+
void (*print_script_error)(const char *p_description, const char *p_function, const char *p_file, int32_t p_line, GDExtensionBool p_editor_notify);
422+
void (*print_script_error_with_message)(const char *p_description, const char *p_message, const char *p_function, const char *p_file, int32_t p_line, GDExtensionBool p_editor_notify);
421423

422424
uint64_t (*get_native_struct_size)(GDExtensionConstStringNamePtr p_name);
423425

@@ -552,7 +554,7 @@ typedef struct {
552554
GDExtensionVariantPtr (*array_operator_index)(GDExtensionTypePtr p_self, GDExtensionInt p_index); // p_self should be an Array ptr
553555
GDExtensionVariantPtr (*array_operator_index_const)(GDExtensionConstTypePtr p_self, GDExtensionInt p_index); // p_self should be an Array ptr
554556
void (*array_ref)(GDExtensionTypePtr p_self, GDExtensionConstTypePtr p_from); // p_self should be an Array ptr
555-
void (*array_set_typed)(GDExtensionTypePtr p_self, uint32_t p_type, GDExtensionConstStringNamePtr p_class_name, GDExtensionConstVariantPtr p_script); // p_self should be an Array ptr
557+
void (*array_set_typed)(GDExtensionTypePtr p_self, GDExtensionVariantType p_type, GDExtensionConstStringNamePtr p_class_name, GDExtensionConstVariantPtr p_script); // p_self should be an Array ptr
556558

557559
/* Dictionary functions */
558560

godot-codegen/src/godot_version.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub fn parse_godot_version(version_str: &str) -> Result<GodotVersion, Box<dyn Er
3030
let regex = Regex::new(
3131
// major minor [patch] official|custom_build|gentoo
3232
// v v v v
33-
r#"(\d+)\.(\d+)(?:\.(\d+))?\.(alpha|beta|dev|stable)[0-9]*\.(?:mono\.)?(?:[a-z_]+\.([a-f0-9]+)|official)"#,
33+
r#"(\d+)\.(\d+)(?:\.(\d+))?\.(alpha|beta|dev|rc|stable)[0-9]*\.(?:mono\.)?(?:[a-z_]+\.([a-f0-9]+)|official)"#,
3434
)?;
3535

3636
let fail = || format!("Version substring cannot be parsed: `{version_str}`");
@@ -71,6 +71,7 @@ fn test_godot_versions() {
7171
("4.0.dev.custom_build.e7e9e663b", 4, 0, 0, "dev", s("e7e9e663b")),
7272
("4.0.alpha.custom_build.faddbcfc0", 4, 0, 0, "alpha", s("faddbcfc0")),
7373
("4.0.beta8.mono.custom_build.b28ddd918", 4, 0, 0, "beta", s("b28ddd918")),
74+
("4.0.rc1.official.8843d9ad3", 4, 0, 0, "rc", s("8843d9ad3")),
7475
];
7576

7677
let bad_versions = [

godot-codegen/src/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ const SELECTED_CLASSES: &[&str] = &[
270270
"Control",
271271
"FileAccess",
272272
"HTTPRequest",
273+
"Image",
274+
"ImageTextureLayered",
273275
"Input",
274276
"Label",
275277
"MainLoop",
@@ -290,6 +292,9 @@ const SELECTED_CLASSES: &[&str] = &[
290292
"SceneTree",
291293
"Sprite2D",
292294
"SpriteFrames",
295+
"Texture",
296+
"Texture2DArray",
297+
"TextureLayered",
293298
"Time",
294299
"Timer",
295300
];

0 commit comments

Comments
 (0)