mirror of
https://github.com/xemu-project/xemu.git
synced 2026-07-11 01:24:41 +02:00
ui: Set app metadata via SDL3
This commit is contained in:
committed by
mborgerson
parent
6c29b043a2
commit
18aba177e2
@@ -1238,6 +1238,17 @@ static void setup_nvidia_profile(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
static void init_sdl_app_metadata(void)
|
||||
{
|
||||
SDL_SetAppMetadataProperty(SDL_PROP_APP_METADATA_NAME_STRING, "xemu");
|
||||
SDL_SetAppMetadataProperty(SDL_PROP_APP_METADATA_VERSION_STRING,
|
||||
xemu_version);
|
||||
SDL_SetAppMetadataProperty(SDL_PROP_APP_METADATA_IDENTIFIER_STRING,
|
||||
"app.xemu.xemu");
|
||||
SDL_SetAppMetadataProperty(SDL_PROP_APP_METADATA_URL_STRING,
|
||||
"https://xemu.app");
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
QemuThread thread;
|
||||
@@ -1272,6 +1283,8 @@ int main(int argc, char **argv)
|
||||
fprintf(stderr, "xemu_commit: %s\n", xemu_commit);
|
||||
fprintf(stderr, "xemu_date: %s\n", xemu_date);
|
||||
|
||||
init_sdl_app_metadata();
|
||||
|
||||
DPRINTF("Entered main()\n");
|
||||
gArgc = argc;
|
||||
gArgv = argv;
|
||||
|
||||
Reference in New Issue
Block a user