mirror of https://github.com/libsdl-org/SDL.git
Use SDL_PROP_APP_METADATA_IDENTIFIER_STRING for the app ID
This commit is contained in:
parent
cea71fbfcc
commit
79f4de9f7e
|
|
@ -59,7 +59,7 @@ const char *SDL_GetExeName(void)
|
||||||
|
|
||||||
const char *SDL_GetAppID(void)
|
const char *SDL_GetAppID(void)
|
||||||
{
|
{
|
||||||
const char *id_str = SDL_GetAppMetadataProperty(SDL_PROP_APP_METADATA_NAME_STRING);
|
const char *id_str = SDL_GetAppMetadataProperty(SDL_PROP_APP_METADATA_IDENTIFIER_STRING);
|
||||||
|
|
||||||
if (!id_str) {
|
if (!id_str) {
|
||||||
/* If the hint isn't set, try to use the application's executable name */
|
/* If the hint isn't set, try to use the application's executable name */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue