1
0
mirror of synced 2024-12-14 00:32:52 +01:00
ImHex/lib/libimhex/include/hex/providers
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
..
buffered_reader.hpp fix: Provider reader being broken 2023-04-20 13:46:44 +02:00
overlay.hpp sys: Fixed many clang tidy warnings and typos 2022-03-04 20:52:39 +01:00
provider_cache.hpp patterns: Updated pattern language 2023-05-29 10:52:39 +02:00
provider_data.hpp impr: Analyze file content of newly loaded files only when they are selected 2023-06-08 17:02:16 +02:00
provider.hpp impr: Separate the behaviour of being savable and being dumpable for provider (#1183) 2023-07-05 20:49:57 +02:00