From c7b853e9ceed8af4970c90b0e03d33c02445c68b Mon Sep 17 00:00:00 2001 From: "MINI\\jairo" Date: Sat, 28 Jun 2025 08:42:56 -0500 Subject: [PATCH] Handle Mix_ methods --- SDL3-CS.SourceGeneration/UnfriendlyMethodFinder.cs | 2 +- SDL3-CS/generate_bindings.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/SDL3-CS.SourceGeneration/UnfriendlyMethodFinder.cs b/SDL3-CS.SourceGeneration/UnfriendlyMethodFinder.cs index 969c09b..c9f87ab 100644 --- a/SDL3-CS.SourceGeneration/UnfriendlyMethodFinder.cs +++ b/SDL3-CS.SourceGeneration/UnfriendlyMethodFinder.cs @@ -15,7 +15,7 @@ namespace SDL.SourceGeneration { public readonly Dictionary> Methods = new Dictionary>(); - private static readonly string[] sdlPrefixes = ["SDL_", "TTF_", "IMG_"]; + private static readonly string[] sdlPrefixes = ["SDL_", "TTF_", "IMG_", "Mix_"]; /// /// Checks whether the method is from any SDL library. diff --git a/SDL3-CS/generate_bindings.py b/SDL3-CS/generate_bindings.py index ba1a941..1320960 100644 --- a/SDL3-CS/generate_bindings.py +++ b/SDL3-CS/generate_bindings.py @@ -180,10 +180,6 @@ headers = [ def prepare_sdl_source(): for lib in SDL_libs: - subprocess.run([ - "git", "config", "--global", "--add", "safe.directory", - repository_root / SDL_lib_root / lib - ]) subprocess.run([ "git", "reset",