mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
sys: Updated to use the new HttpRequest helper instead of Net
This commit is contained in:
@@ -63,7 +63,7 @@ namespace hex::plugin::builtin {
|
||||
.basePath = "hashes.json",
|
||||
.required = false,
|
||||
.load = [](prv::Provider *provider, const std::fs::path &basePath, Tar &tar) -> bool {
|
||||
auto fileContent = tar.read(basePath);
|
||||
auto fileContent = tar.readString(basePath);
|
||||
if (fileContent.empty())
|
||||
return true;
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace hex::plugin::builtin {
|
||||
nlohmann::json data;
|
||||
|
||||
bool result = ViewHashes::exportHashes(provider, data);
|
||||
tar.write(basePath, data.dump(4));
|
||||
tar.writeString(basePath, data.dump(4));
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user