Almost running application

This commit is contained in:
momo5502
2024-08-31 21:43:05 +02:00
parent 3ead613d2c
commit 164e9b737d
4 changed files with 9 additions and 3 deletions

View File

@@ -158,7 +158,8 @@ namespace
emu.hook_memory_execution(exp.first, 0,
[n = std::move(name), filename](const uint64_t address, const size_t)
{
printf("Executing function: %s - %s (%llX)\n",filename.c_str(), n.c_str(), address);
printf("Executing function: %s - %s (%llX)\n", filename.c_str(), n.c_str(),
address);
});
}
}
@@ -189,6 +190,9 @@ namespace
}
}
binary.entry_point = binary.image_base + optional_header.AddressOfEntryPoint;
printf("Mapping %s at %llX\n", name.c_str(), binary.image_base);
emu.write_memory(binary.image_base, ptr, optional_header.SizeOfHeaders);