From d76c9c992cbb2c3487af19fd482d36db90b0b496 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Wed, 4 Mar 2026 14:06:07 -0500 Subject: [PATCH] FS#13746: open_plugin_run() doesn't handle "not found" properly If the specified key wasn't found, we would fall back to trying to launch a plugin with the LANG_* key. This will fail, resulting in an error that spells out the (inappropriate) LANG_* text. Instead, fail out with a more appropriate error. Change-Id: I046878f87a2ef2bc994d0b7d037359695a18d392 --- apps/open_plugin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/open_plugin.c b/apps/open_plugin.c index bcb8b34604..c892a94233 100644 --- a/apps/open_plugin.c +++ b/apps/open_plugin.c @@ -479,6 +479,10 @@ int open_plugin_run(const char *key) { int ret = 0; int opret = open_plugin_load_entry(key); + if (opret == OPEN_PLUGIN_NOT_FOUND) { + splashf(HZ*2, ID2P(LANG_PLUGIN_CANT_OPEN), key ? P2STR((unsigned char *)key) : ""); + return ret; + } struct open_plugin_entry_t *op_entry = open_plugin_get_entry(); if (opret == OPEN_PLUGIN_NEEDS_FLUSHED) op_update_dat(op_entry, false);