mirror of
https://github.com/KarnerF/SMPlusGui.git
synced 2026-10-06 05:00:21 +02:00
Restore: simple no-icon notification, remove icon-install notification
This commit is contained in:
1 parent
3111bb7df1
commit
c365eb8ff3
2 files changed
+3
-9
No files matched your search
@@ -7,8 +7,6 @@
|
||||
|
||||
#include "app_installer.h"
|
||||
|
||||
extern int sceNotificationSend(int uid, int logged, const char *payload);
|
||||
|
||||
/* Assets einbetten - exakt wie Payload Manager und Game Compressor */
|
||||
#define INCASSET(name, file) \
|
||||
__asm__(".section .rodata\n" \
|
||||
@@ -77,11 +75,6 @@ void smplus_install_if_needed(int icon_always_front) {
|
||||
install_title_dir(TITLE_ID, APP_ROOT "/");
|
||||
mkdir("/data/SMPlusGui", 0755);
|
||||
write_file(MARKER, (const uint8_t *)"ok\n", 3);
|
||||
sceNotificationSend(0xFE,1,"{\"rawData\":{\"viewTemplateType\":\"InteractiveToastTemplateB\","
|
||||
"\"channelType\":\"Downloads\",\"useCaseId\":\"IDC\",\"toastOverwriteType\":\"No\","
|
||||
"\"isImmediate\":true,\"priority\":100,\"viewData\":{\"icon\":{\"type\":\"Predefined\","
|
||||
"\"parameters\":{\"icon\":\"download\"}},\"message\":{\"body\":\"SMPlusGui: Icon installiert\"}},"
|
||||
"\"createdDateTime\":\"2025-01-01T00:00:00.000Z\",\"localNotificationId\":\"ico1\"}}");
|
||||
|
||||
done:
|
||||
sceAppInstUtilTerminate();
|
||||
|
||||
@@ -2701,8 +2701,9 @@ int payload_main(void) {
|
||||
mg_mgr_free(&mgr); usleep(500000); mg_mgr_init(&mgr);
|
||||
mg_http_listen(&mgr,"http://0.0.0.0:" HTTP_PORT,fn,NULL);
|
||||
smg_mgr=&mgr;
|
||||
char url[64]; snprintf(url,sizeof(url),"http://%s:" HTTP_PORT,cur_ip);
|
||||
_notify_send("SMPlusGui v" SMPLUS_VERSION, url);
|
||||
/* simple restore notification without icon */
|
||||
char rmsg[80]; snprintf(rmsg,sizeof(rmsg),"Restore SMPlusGui - http://%s:" HTTP_PORT,cur_ip);
|
||||
notify(rmsg);
|
||||
} else if(!new_ip[0]&&cur_ip[0]) {
|
||||
cur_ip[0]=0; /* IP lost — next cycle with IP will trigger restore */
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user