Skip to content

Commit 5c320cc

Browse files
committed
SDL3: Set app metadata
1 parent 6130351 commit 5c320cc

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Source/utils/display.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#endif
3535

3636
#include "DiabloUI/diabloui.h"
37+
#include "config.h"
3738
#include "control.h"
3839
#include "controls/controller.h"
3940
#ifndef USE_SDL1
@@ -511,6 +512,12 @@ bool SpawnWindow(const char *lpWindowName)
511512
#endif
512513

513514
#ifdef USE_SDL3
515+
SDL_SetAppMetadataProperty(SDL_PROP_APP_METADATA_NAME_STRING, PROJECT_NAME);
516+
SDL_SetAppMetadataProperty(SDL_PROP_APP_METADATA_VERSION_STRING, PROJECT_VERSION);
517+
SDL_SetAppMetadataProperty(SDL_PROP_APP_METADATA_IDENTIFIER_STRING, "org.diasurgical.devilutionx");
518+
SDL_SetAppMetadataProperty(SDL_PROP_APP_METADATA_URL_STRING, "https://devilutionx.com");
519+
SDL_SetAppMetadataProperty(SDL_PROP_APP_METADATA_TYPE_STRING, "game");
520+
514521
SDL_SetHint(SDL_HINT_RETURN_KEY_HIDES_IME, "1");
515522
#endif
516523
#if SDL_VERSION_ATLEAST(2, 0, 4) && !defined(USE_SDL3)

0 commit comments

Comments
 (0)