feat: Do not save memory providers as recent entries (#1259)

This commit is contained in:
iTrooz
2023-08-25 15:35:15 +02:00
committed by GitHub
parent a1dc979217
commit 175e66a60e
3 changed files with 10 additions and 0 deletions

View File

@@ -61,6 +61,12 @@ namespace hex::prv {
*/
[[nodiscard]] virtual bool isDumpable() const;
/**
* @brief Controls whether this provider can be saved as a recent entry
* Tipitcally used for providers that do not retain data, e.g. the memory provider
*/
[[nodiscard]] virtual bool isSavableAsRecent() const { return true; }
/**
* @brief Read data from this provider, applying overlays and patches
* @param offset offset to start reading the data