mirror of https://github.com/ppy/SDL3-CS.git
Hard-code string-returning functions in SDL_mixer
This commit is contained in:
parent
2c185bf63b
commit
3c21f68505
|
|
@ -312,7 +312,6 @@ def run_clangsharp(command, header: Header):
|
|||
"--file", header.input_file(),
|
||||
"--output", header.output_file(),
|
||||
"--libraryPath", header.base,
|
||||
|
||||
"--methodClassName", header.base,
|
||||
]
|
||||
|
||||
|
|
@ -374,6 +373,8 @@ def get_string_returning_functions(sdl_api):
|
|||
yield "TTF_GetFontFamilyName"
|
||||
yield "TTF_GetFontStyleName"
|
||||
|
||||
yield "MIX_GetAudioDecoder"
|
||||
|
||||
|
||||
def should_skip(solo_headers: list[Header], header: Header):
|
||||
if len(solo_headers) == 0:
|
||||
|
|
|
|||
|
|
@ -79,9 +79,9 @@ namespace SDL
|
|||
[DllImport("SDL3_mixer", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern int MIX_GetNumAudioDecoders();
|
||||
|
||||
[DllImport("SDL3_mixer", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
[DllImport("SDL3_mixer", CallingConvention = CallingConvention.Cdecl, EntryPoint = "MIX_GetAudioDecoder", ExactSpelling = true)]
|
||||
[return: NativeTypeName("const char *")]
|
||||
public static extern byte* MIX_GetAudioDecoder(int index);
|
||||
public static extern byte* Unsafe_MIX_GetAudioDecoder(int index);
|
||||
|
||||
[DllImport("SDL3_mixer", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern MIX_Mixer* MIX_CreateMixerDevice(SDL_AudioDeviceID devid, [NativeTypeName("const SDL_AudioSpec *")] SDL_AudioSpec* spec);
|
||||
|
|
|
|||
Loading…
Reference in New Issue