From 72c539d35e1853980de1d74e65acc9a22caa63f6 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Wed, 22 Nov 2023 00:07:30 -0500 Subject: [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 --- apps/tree.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/tree.h') diff --git a/apps/tree.h b/apps/tree.h index d454c0f7ee..d13c75d434 100644 --- a/apps/tree.h +++ b/apps/tree.h @@ -90,9 +90,12 @@ struct tree_context { int currtable; /* db use */ int currextra; /* db use */ #endif + int sort_dir; /* directory sort order */ + int out_of_tree; /* shortcut from elsewhere */ struct tree_cache cache; bool dirfull; - int sort_dir; /* directory sort order */ + bool is_browsing; /* valid browse context? */ + struct browse_context *browse; }; -- cgit v1.2.3