mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2025-01-18 17:47:16 +00:00
Add Mix_GetError, Mix_SetError, Mix_ClearError
Adding `Mix_GetError`, `Mix_SetError`, `Mix_ClearError` as per the SDL_mixer header file: /* We'll use SDL for reporting errors */ #define Mix_SetError SDL_SetError #define Mix_GetError SDL_GetError #define Mix_ClearError SDL_ClearError
This commit is contained in:
parent
db935863bb
commit
4e9088b49d
|
@ -646,6 +646,21 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern void Mix_CloseAudio();
|
public static extern void Mix_CloseAudio();
|
||||||
|
|
||||||
|
public static string Mix_GetError()
|
||||||
|
{
|
||||||
|
return SDL.SDL_GetError();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void Mix_SetError(string fmtAndArglist)
|
||||||
|
{
|
||||||
|
SDL.SDL_SetError(fmtAndArglist);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void Mix_ClearError()
|
||||||
|
{
|
||||||
|
SDL.SDL_ClearError();
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue