diff --git a/src/generator/ArmV7Generator.cpp b/src/generator/ArmV7Generator.cpp index f6d824c..5a52d68 100644 --- a/src/generator/ArmV7Generator.cpp +++ b/src/generator/ArmV7Generator.cpp @@ -118,7 +118,7 @@ geode::Result ArmV7HandlerGenerator::generateTrampoline(uint64_t t GenRelocateCodeAndBranch(originBuffer, relocatedBuffer, origin, relocated, +[](void* dest, void const* src, size_t size) { auto res = Target::get().writeMemory(dest, src, size); if (!res) { - error = res.error(); + error = res.unwrapErr(); } }); diff --git a/src/generator/ArmV8Generator.cpp b/src/generator/ArmV8Generator.cpp index f2576eb..9cdb3ba 100644 --- a/src/generator/ArmV8Generator.cpp +++ b/src/generator/ArmV8Generator.cpp @@ -137,7 +137,7 @@ geode::Result ArmV8HandlerGenerator::generateTrampoline(uint64_t t GenRelocateCodeAndBranch(originBuffer, relocatedBuffer, origin, relocated, +[](void* dest, void const* src, size_t size) { auto res = Target::get().writeMemory(dest, src, size); if (!res) { - error = res.error(); + error = res.unwrapErr(); } });