store: Added encoding files to store, fixed crash when folder doesn't exist

This commit is contained in:
WerWolv
2022-01-23 21:52:24 +01:00
parent 053c897056
commit 9cf7fc4a2e
10 changed files with 67 additions and 37 deletions

View File

@@ -43,15 +43,15 @@ namespace hex::plugin::builtin {
std::future<Response<void>> m_download;
fs::path m_downloadPath;
std::vector<StoreEntry> m_patterns, m_includes, m_magics, m_constants, m_yara;
std::vector<StoreEntry> m_patterns, m_includes, m_magics, m_constants, m_yara, m_encodings;
void drawStore();
void refresh();
void parseResponse();
void download(ImHexPath pathType, const std::string &fileName, const std::string &url, bool update);
void remove(ImHexPath pathType, const std::string &fileName);
bool download(ImHexPath pathType, const std::string &fileName, const std::string &url, bool update);
bool remove(ImHexPath pathType, const std::string &fileName);
};
}