mirror of
https://github.com/KarnerF/SMPlusGui.git
synced 2026-10-06 10:00:21 +02:00
Move SMPlusGui tile to Media category
This commit is contained in:
1 parent
6032b4a6d9
commit
2782b4729e
2 files changed
+5
-4
No files matched your search
+4
-3
@@ -65,8 +65,9 @@ void smplus_install_if_needed(int icon_always_front, int http_port) {
|
||||
/* reinstall if marker missing or port changed */
|
||||
FILE *m=fopen(MARKER,"r");
|
||||
if(!m){need=1;}
|
||||
else{char buf[16]={0};fread(buf,1,sizeof(buf)-1,m);fclose(m);
|
||||
if(atoi(buf)!=port) need=1;}
|
||||
else{char buf[32]={0};fread(buf,1,sizeof(buf)-1,m);fclose(m);
|
||||
char expected[32]; snprintf(expected,sizeof(expected),"%d|media",port);
|
||||
if(strcmp(buf,expected)!=0) need=1;}
|
||||
}
|
||||
if(!need) return;
|
||||
|
||||
@@ -97,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[16]; snprintf(pm,sizeof(pm),"%d\n",port);
|
||||
{char pm[32]; snprintf(pm,sizeof(pm),"%d|media",port);
|
||||
write_file(MARKER,(const uint8_t *)pm,strlen(pm));}
|
||||
|
||||
done:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"applicationCategoryType": 0,
|
||||
"applicationCategoryType": 1,
|
||||
"titleId": "SMPL00001",
|
||||
"deeplinkUri": "http://127.0.0.1:7777/",
|
||||
"localizedParameters": {
|
||||
|
||||
Reference in new issue
Block a user