From dc21f856c342353e83565c22ea4481f3e833d330 Mon Sep 17 00:00:00 2001 From: KarnerF Date: Sun, 30 Aug 2026 13:33:37 +0200 Subject: [PATCH] Mount writes to manual.lst (persistent) AND calls SM API (immediate) --- main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index b0b0354..8e92288 100644 --- a/main.c +++ b/main.c @@ -1813,7 +1813,10 @@ static void fn(struct mg_connection *c, int ev, void *ev_data) { "function _smMount(i){var g=window._smG&&window._smG[i];if(!g)return;" "var gl=document.getElementById('games-list');" "if(gl)gl.innerHTML='

Mounting...

';" - "if(g.tid)mountGame(g.tid);else manualMount(g.path);}" + /* write to manual.lst for persistence + call SM API for immediate mount */ + "fetch('/api/manual/add?path='+encodeURIComponent(g.path),{method:'POST'});" + "if(g.tid){fetch('/api/sm/games/mount?title_id='+encodeURIComponent(g.tid),{method:'POST'});}" + "setTimeout(function(){loadGamePanel(0);},4000);}" "function _smUnmount(i){var g=window._smG&&window._smG[i];if(!g)return;" "var gl=document.getElementById('games-list');" "if(gl)gl.innerHTML='

Unmounting...

';"