impr: Allow files to be switched between memory loaded and direct access

This commit is contained in:
WerWolv
2024-06-09 20:59:06 +02:00
parent 531c049bb0
commit ecf871a6f1
4 changed files with 59 additions and 51 deletions

View File

@@ -55,8 +55,12 @@ namespace hex::plugin::builtin {
private:
void convertToMemoryFile();
void convertToDirectAccess();
void handleFileChange();
bool open(bool memoryMapped);
protected:
std::fs::path m_path;
wolv::io::File m_file;