mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-03 05:57:40 -05:00
sys: Replaced many helper functions with libwolv
This commit is contained in:
@@ -47,7 +47,7 @@ namespace hex::plugin::builtin {
|
||||
|
||||
ContentRegistry::FileHandler::add({ ".mgc" }, [](const auto &path) {
|
||||
for (const auto &destPath : fs::getDefaultPaths(fs::ImHexPath::Magic)) {
|
||||
if (fs::copyFile(path, destPath / path.filename(), std::fs::copy_options::overwrite_existing)) {
|
||||
if (wolv::io::fs::copyFile(path, destPath / path.filename(), std::fs::copy_options::overwrite_existing)) {
|
||||
View::showInfoPopup("hex.builtin.view.information.magic_db_added"_lang);
|
||||
return true;
|
||||
}
|
||||
@@ -110,7 +110,7 @@ namespace hex::plugin::builtin {
|
||||
provider->getBaseAddress(), provider->getSize());
|
||||
|
||||
// Create a handle to the file
|
||||
auto reader = prv::BufferedReader(provider);
|
||||
auto reader = prv::ProviderReader(provider);
|
||||
reader.seek(provider->getBaseAddress() + this->m_inputStartAddress);
|
||||
reader.setEndAddress(provider->getBaseAddress() + this->m_inputEndAddress);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user