Use numeric 65536 Media category from Pegasus metadata

This commit is contained in:
KarnerF committed 2026-09-15 20:05:20 +02:00
1 parent d07e426d1b
commit bdf409b03c
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -66,7 +66,7 @@ void smplus_install_if_needed(int icon_always_front, int http_port) {
FILE *m=fopen(MARKER,"r");
if(!m){need=1;}
else{char buf[32]={0};fread(buf,1,sizeof(buf)-1,m);fclose(m);
char expected[32]; snprintf(expected,sizeof(expected),"%d|media2",port);
char expected[32]; snprintf(expected,sizeof(expected),"%d|media3",port);
if(strcmp(buf,expected)!=0) need=1;}
}
if(!need) return;
@@ -98,7 +98,7 @@ void smplus_install_if_needed(int icon_always_front, int http_port) {
install_title_dir(TITLE_ID, APP_ROOT "/");
mkdir("/data/SMPlusGui", 0755);
/* write port to marker so changes trigger reinstall */
{char pm[32]; snprintf(pm,sizeof(pm),"%d|media2",port);
{char pm[32]; snprintf(pm,sizeof(pm),"%d|media3",port);
write_file(MARKER,(const uint8_t *)pm,strlen(pm));}
done:
+1 -1
View File
@@ -1,5 +1,5 @@
{
"applicationCategoryType": "media",
"applicationCategoryType": 65536,
"titleId": "SMPL00001",
"deeplinkUri": "http://127.0.0.1:7777/",
"localizedParameters": {