diff options
author | William Wilgus <wilgus.william@gmail.com> | 2023-11-22 00:07:30 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2023-11-22 00:52:58 -0500 |
commit | 72c539d35e1853980de1d74e65acc9a22caa63f6 (patch) | |
tree | 34c70c631addcd7dac99c294a1316391ef3e22c8 /apps/tree.h | |
parent | 6e90bfe029fc69ad5a3b0e34b60b8a50f9105c2c (diff) | |
download | rockbox-72c539d35e1853980de1d74e65acc9a22caa63f6.tar.gz rockbox-72c539d35e1853980de1d74e65acc9a22caa63f6.zip |
[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
Diffstat (limited to 'apps/tree.h')
-rw-r--r-- | apps/tree.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 { | |||
90 | int currtable; /* db use */ | 90 | int currtable; /* db use */ |
91 | int currextra; /* db use */ | 91 | int currextra; /* db use */ |
92 | #endif | 92 | #endif |
93 | int sort_dir; /* directory sort order */ | ||
94 | int out_of_tree; /* shortcut from elsewhere */ | ||
93 | struct tree_cache cache; | 95 | struct tree_cache cache; |
94 | bool dirfull; | 96 | bool dirfull; |
95 | int sort_dir; /* directory sort order */ | 97 | bool is_browsing; /* valid browse context? */ |
98 | |||
96 | struct browse_context *browse; | 99 | struct browse_context *browse; |
97 | }; | 100 | }; |
98 | 101 | ||