mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-24 00:06:10 +00:00
snake: Add basic app metadata
All SDL3 applications and games should ideally have this. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
committed by
Ryan C. Gordon
parent
6ae5666acf
commit
ca82405d5a
@@ -283,6 +283,10 @@ SDL_AppResult SDL_AppIterate(void *appstate)
|
||||
|
||||
SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[])
|
||||
{
|
||||
if (!SDL_SetAppMetadata("Example Snake game", "1.0", "com.example.Snake")) {
|
||||
return SDL_APP_FAILURE;
|
||||
}
|
||||
|
||||
if (!SDL_Init(SDL_INIT_VIDEO)) {
|
||||
return SDL_APP_FAILURE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user