[BugFix] OpenPlugins wrong plugin lang id

Failing to use ID2P caused the lang id to be off by VIRT_PTR

Change-Id: Ibbabaae6c1fe130af4053ef3ebe2b1aa69530466
This commit is contained in:
William Wilgus 2025-02-25 17:55:36 -05:00 committed by William Wilgus
parent dbebbcfed1
commit 10923de8fe

View file

@ -795,13 +795,13 @@ static int load_plugin_screen(char *key)
{ {
if(op_entry->lang_id == LANG_OPEN_PLUGIN) if(op_entry->lang_id == LANG_OPEN_PLUGIN)
{ {
if (key == (char*)LANG_SHORTCUTS) if (key == (char*)ID2P(LANG_SHORTCUTS))
{ {
op_entry->lang_id = LANG_SHORTCUTS; op_entry->lang_id = LANG_SHORTCUTS;
} }
else /* Bugfix ensure proper key */ else /* Bugfix ensure proper key */
{ {
key = (char*)LANG_OPEN_PLUGIN; key = ID2P(LANG_OPEN_PLUGIN);
} }
} }
continue; continue;