mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-05 23:10:58 +00:00
examples: add basic app metadata to all existing examples.
This commit is contained in:
parent
aa534c3ac3
commit
659f2f4b04
20 changed files with 40 additions and 0 deletions
|
@ -53,6 +53,8 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[])
|
|||
{
|
||||
SDL_AudioSpec spec;
|
||||
|
||||
SDL_SetAppMetadata("Example Simple Audio Playback Callback", "1.0", "com.example.audio-simple-playback-callback");
|
||||
|
||||
if (!SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO)) {
|
||||
SDL_Log("Couldn't initialize SDL: %s", SDL_GetError());
|
||||
return SDL_APP_FAILURE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue