mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-05 22:30:29 +00:00
metadata: SDL_GetAppMetadataProperty() now uses SDL_GetExeName().
(for SDL_PROP_APP_METADATA_NAME_STRING if unset. If SDL_GetExeName() returns
NULL, it'll fallback to good ol' "SDL Application", as usual.)
Fixes #15692.
(cherry picked from commit a49ba90257)
This commit is contained in:
parent
2621d7aab2
commit
58c2de8e25
1 changed files with 4 additions and 1 deletions
|
|
@ -173,7 +173,10 @@ const char *SDL_GetAppMetadataProperty(const char *name)
|
|||
}
|
||||
if (!value || !*value) {
|
||||
if (SDL_strcmp(name, SDL_PROP_APP_METADATA_NAME_STRING) == 0) {
|
||||
value = "SDL Application";
|
||||
value = SDL_GetExeName();
|
||||
if (!value) {
|
||||
value = "SDL Application";
|
||||
}
|
||||
} else if (SDL_strcmp(name, SDL_PROP_APP_METADATA_TYPE_STRING) == 0) {
|
||||
value = "application";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue