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

+14 -1
View File
@@ -194,6 +194,10 @@ bool isGameBoyExt(const std::string& ext) {
return ext == "gb" || ext == "gbc";
}
bool isJ2meExt(const std::string& ext) {
return ext == "jar" || ext == "jad";
}
bool isYabasicExt(const std::string& ext) {
return ext == "yab";
}
@@ -762,6 +766,11 @@ int runFilesApp(int argc, char** argv) {
actionsList.push_back({15, kIconBell, "Set as Ringtone"});
} else if (isGameBoyExt(ext)) {
actionsList.push_back({1, kIconGamepad, "Play in Game Boy Emulator"});
} else if (isJ2meExt(ext)) {
actionsList.push_back({1, kIconGamepad, "Run in ReMEdy (J2ME)"});
if (ext == "jad") {
actionsList.push_back({17, kIconEye, "View JAD Descriptor"});
}
} else if (isYabasicExt(ext)) {
actionsList.push_back({1, kIconTerm, "Run in Yabasic (Terminal)"});
actionsList.push_back({17, kIconEye, "View Text"});
@@ -855,6 +864,10 @@ int runFilesApp(int argc, char** argv) {
hideWindow();
runAsyncArgv("gambatte", item.fullPath.c_str());
return;
} else if (isJ2meExt(ext)) {
hideWindow();
runAsyncArgv("remedy", item.fullPath.c_str());
return;
} else if (isYabasicExt(ext)) {
runYabasicInTerminal(item.fullPath);
return;
@@ -967,7 +980,7 @@ int runFilesApp(int argc, char** argv) {
} else if (isMediaExt(ext)) {
ic = kIconMusic;
icCol = &colBlue;
} else if (isGameBoyExt(ext)) {
} else if (isGameBoyExt(ext) || isJ2meExt(ext)) {
ic = kIconGamepad;
icCol = &colYellow;
} else if (isYabasicExt(ext) || it.isExec || ext == "sh") {