1
0
Fork 0
forked from len0rd/rockbox

[Bug_Fix] shortcut to directory in .link files caused crash

since the plugin browser is now closed when running plugins
rb->set_current_file() had no valid browser context and used 'random' memory
instead

also adds a way to discard levels so we can load the desired directory
instead of returning to the previous

https://forums.rockbox.org/index.php/topic,54694.0.html

Change-Id: I624246e56d42972bf6a1ce566a209b745de6f30b
This commit is contained in:
William Wilgus 2023-11-22 00:07:30 -05:00
parent 6e90bfe029
commit 72c539d35e
5 changed files with 83 additions and 13 deletions

View file

@ -353,7 +353,7 @@ static bool callback_show_item(char *name, int attr, struct tree_context *tc)
{
if (strstr(tc->currdir, PLUGIN_DIR) != NULL)
return true;
tc->browse = NULL; /* exit immediately */
tc->is_browsing = false; /* exit immediately */
}
else if(attr & FILE_ATTR_ROCK)
{