1
0
mirror of synced 2024-12-13 16:31:07 +01:00
ImHex/plugins/builtin/include/content
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
..
helpers impr: Handle unidentifiable data in the data information view better 2023-07-02 10:27:56 +02:00
popups build: Make sure changing commit hash doesn't trigger a full rebuild 2023-06-26 14:01:45 +02:00
providers impr: Separate the behaviour of being savable and being dumpable for provider (#1183) 2023-07-05 20:49:57 +02:00
views patterns: Fixed race condition when evaluating patterns 2023-06-30 00:11:26 +02:00
global_actions.hpp feat: Added quick "save project" action (#826) 2022-11-25 10:47:11 +01:00
recent.hpp feat: Save opened projects as recent entries (#1105) 2023-05-27 16:59:30 +02:00