Add ReMEdy native 240x320 J2ME (MIDP 2.0 / CLDC 1.1 / M3G 3D) emulator and file manager integration

This commit is contained in:
Luxferre committed 2026-10-28 12:41:00 +02:00
1 parent 3b9f2ee28d
commit 66769d7c2e
39 files changed
+15412 -15

No files matched your search

+10
View File
@@ -2091,6 +2091,8 @@ add_parsed_choice_line(const char *line)
return;
if (items[i].text && strstr(label, "Bantam") && strstr(items[i].text, "Bantam"))
return;
if (items[i].text && strstr(label, "ReMEdy") && strstr(items[i].text, "ReMEdy"))
return;
}
int loop = (strchr(loop_str, '1') != NULL) ? 1 : 0;
if (strncmp(cmd, "sxmo_appmenu.sh ", 16) == 0) {
@@ -2433,6 +2435,10 @@ open_builtin_menu(const char *menu_name, int keep_idx)
snprintf(label, sizeof(label), "%s Bantam", ICON_TRM);
add_menu_item(label, "cd \"$HOME\" && sxmo_terminal.sh bantam", 0);
}
if (access("/usr/bin/remedy", X_OK) == 0) {
snprintf(label, sizeof(label), "%s ReMEdy (J2ME)", ICON_GAM);
add_menu_item(label, "remedy", 0);
}
load_cache_or_hook("sxmo_apps.cache", "sxmo_hook_apps.sh");
snprintf(label, sizeof(label), "%s Themes", ICON_THM);
int has_themes = 0;
@@ -2469,6 +2475,10 @@ open_builtin_menu(const char *menu_name, int keep_idx)
snprintf(label, sizeof(label), "%s Game Boy (Gambatte)", ICON_GAM);
add_menu_item(label, "gambatte", 0);
}
if (access("/usr/bin/remedy", X_OK) == 0) {
snprintf(label, sizeof(label), "%s ReMEdy (J2ME)", ICON_GAM);
add_menu_item(label, "remedy", 0);
}
const char *rdir = getenv("XDG_RUNTIME_DIR");
char gcache[256];
snprintf(gcache, sizeof(gcache), "%s/sxmo_games.cache", (rdir && rdir[0]) ? rdir : "/run/user/10000");