File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ extern fn SDL_Init(flags: InitFlags) i32;
5252pub const quit = SDL_Quit ;
5353extern fn SDL_Quit () void ;
5454
55+ pub const setMainReady = SDL_SetMainReady ;
56+ extern fn SDL_SetMainReady () void ;
57+
5558//--------------------------------------------------------------------------------------------------
5659//
5760// Configuration Variables
@@ -64,6 +67,11 @@ pub fn setHint(name: [:0]const u8, value: [:0]const u8) bool {
6467}
6568extern fn SDL_SetHint (name : [* :0 ]const u8 , value : [* :0 ]const u8 ) Bool ;
6669
70+ pub fn setAppMetadata (name : [:0 ]const u8 , version : [:0 ]const u8 , identifier : [:0 ]const u8 ) Error ! void {
71+ if (SDL_SetAppMetadata (name , version , identifier ) == False ) return makeError ();
72+ }
73+ extern fn SDL_SetAppMetadata (appname : [* :0 ]const u8 , appversion : [* :0 ]const u8 , appidentifier : [* :0 ]const u8 ) Bool ;
74+
6775//--------------------------------------------------------------------------------------------------
6876//
6977// Error Handling
You can’t perform that action at this time.
0 commit comments