Use SDL_PROP_APP_METADATA_IDENTIFIER_STRING for the app ID

This commit is contained in:
Sam Lantinga
2024-08-02 19:36:31 -07:00
parent cea71fbfcc
commit 79f4de9f7e

View File

@@ -59,7 +59,7 @@ const char *SDL_GetExeName(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 the hint isn't set, try to use the application's executable name */