Skip to content

Commit 8815a65

Browse files
committed
Add setMainReady and setAppMetadata
1 parent 7533d8f commit 8815a65

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/sdl3.zig

+8
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ extern fn SDL_Init(flags: InitFlags) i32;
5252
pub const quit = SDL_Quit;
5353
extern 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
}
6568
extern 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) bool {
71+
return SDL_SetAppMetadata(name, version, identifier) == True;
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

0 commit comments

Comments
 (0)