android fix

This commit is contained in:
2026-03-10 19:01:54 +03:00
parent 2b4a75d011
commit 1e601d2d8f

View File

@@ -17,10 +17,14 @@ namespace omath::lua
void LuaInterpreter::register_pattern_scan(sol::table& omath_table) void LuaInterpreter::register_pattern_scan(sol::table& omath_table)
{ {
omath_table.new_usertype<SectionScanResult>( omath_table.new_usertype<SectionScanResult>(
"SectionScanResult", sol::no_constructor, "virtual_base_addr", "SectionScanResult", sol::no_constructor,
sol::readonly(&SectionScanResult::virtual_base_addr), "raw_base_addr", "virtual_base_addr",
sol::readonly(&SectionScanResult::raw_base_addr), "target_offset", sol::property([](const SectionScanResult& r) { return r.virtual_base_addr; }),
sol::readonly(&SectionScanResult::target_offset), sol::meta_function::to_string, "raw_base_addr",
sol::property([](const SectionScanResult& r) { return r.raw_base_addr; }),
"target_offset",
sol::property([](const SectionScanResult& r) { return r.target_offset; }),
sol::meta_function::to_string,
[](const SectionScanResult& r) [](const SectionScanResult& r)
{ {
return std::format("SectionScanResult(vbase=0x{:X}, raw_base=0x{:X}, offset={})", return std::format("SectionScanResult(vbase=0x{:X}, raw_base=0x{:X}, offset={})",