1
0
mirror of synced 2024-11-29 09:54:30 +01:00
ImHex/plugins/builtin/source/content/views
iTrooz e3ae169833
impr: Separate the behaviour of being savable and being dumpable for provider (#1183)
### Problem description

Currently, the providers use the method `isSavable()` to determine both
if they can use "Save" or "Save as".
This behaviour is problematic because some providers may need to be
saveable but not saveable as: for example the view provider. The
original provider may not allow to be saved.

### Implementation description
I separate these two behaviour by creating another function:
`isDumpable()`, that return true by default but can be overridden by the
provider to return false, if the provider should not be dumped in any
way.

### Additional things

While I was at it, I also marked "export" operations as needing the
"dumpable" flag. That way, we can't accidentally export the whole
address space of a process as base64.

I also added documentation for these some functions in Provider
2023-07-05 20:49:57 +02:00
..
view_about.cpp build: Restructure romfs assets 2023-07-04 08:42:33 +02:00
view_bookmarks.cpp fix: Bookmarks not being loaded correctly when multiple providers are in project 2023-07-01 12:27:59 +02:00
view_command_palette.cpp build: Update ImGui and its dependencies (#1122) 2023-06-04 00:09:45 +02:00
view_constants.cpp fix: Don't load constants files that start with a _ 2023-06-23 21:39:39 +02:00
view_data_inspector.cpp fix: Prevent data inspector table from being scrollable 2023-06-24 15:39:19 +02:00
view_data_processor.cpp impr: Better JSON error handling in many places 2023-05-16 11:33:00 +02:00
view_diff.cpp fix: Selection in diff view being retained 2023-05-20 21:13:40 +02:00
view_disassembler.cpp fix: Make disassembler view not clear selection when typing in region 2023-06-24 20:53:36 +02:00
view_find.cpp impr: Use better icons for favorites and filter text boxes 2023-06-04 22:52:36 +02:00
view_hashes.cpp fix: Corrected some memory leaks 2023-06-11 10:47:17 +02:00
view_hex_editor.cpp impr: Separate the behaviour of being savable and being dumpable for provider (#1183) 2023-07-05 20:49:57 +02:00
view_information.cpp impr: Handle unidentifiable data in the data information view better 2023-07-02 10:27:56 +02:00
view_patches.cpp impr: Better JSON error handling in many places 2023-05-16 11:33:00 +02:00
view_pattern_data.cpp patterns: Fixed race condition when evaluating patterns 2023-06-30 00:11:26 +02:00
view_pattern_editor.cpp impr: Hide sections with an empty name 2023-07-03 12:04:20 +02:00
view_provider_settings.cpp impr: Update all of ImHex to the new popup system 2023-04-08 00:58:53 +02:00
view_settings.cpp impr: Move some options into a new Extras menu 2023-05-12 08:38:32 +02:00
view_store.cpp build: Update ImGui and its dependencies (#1122) 2023-06-04 00:09:45 +02:00
view_theme_manager.cpp fix: Turning off blur again not working 2023-05-22 13:25:11 +02:00
view_tools.cpp impr: Allow detached tools to always be rendered 2023-06-05 09:08:41 +02:00
view_yara.cpp fix: Various localization issues 2023-04-17 22:18:50 +02:00