ui: show some more important information and checks

This commit is contained in:
Dobin
2024-05-01 22:30:53 +01:00
parent 3e6c1e06cf
commit c372d348ce
6 changed files with 52 additions and 10 deletions
+4 -1
View File
@@ -107,6 +107,10 @@ class SuperPe():
return section
return None
def has_rodata_section(self) -> bool:
return self.get_section_by_name(".rdata")
def write_code_section_data(self, data: bytes):
sect = self.get_code_section()
@@ -201,7 +205,6 @@ class SuperPe():
self.pe.set_dword_at_rva(addr + relocsSize + 4, sizeOfReloc)
logger.info(f'Adding {len(relocs)} relocations for Page RVA 0x{pageRva:X} - size of block: 0x{sizeOfReloc:X}')
i = 0
for reloc in relocs:
reloc_offset = (reloc - pageRva)