From f46958246c2a7411de3a4971c4ba7b3415941293 Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Mon, 4 Nov 2024 22:35:04 +0300 Subject: [PATCH] fix result api changes --- src/generator/ArmV7Generator.cpp | 2 +- src/generator/ArmV8Generator.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); } });