소스 검색

Write offset for bytesig entries (for mempatches)

nosoop 10 달 전
부모
커밋
d1f50991d2
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/smgdc/validate.py

+ 2 - 0
src/smgdc/validate.py

@@ -237,6 +237,7 @@ class ByteSigEntry(LocationEntry, tag="bytesig", kw_only=True):
                 )
             return {
                 KEY_AS_IS: self.contents.gameconf_str,
+                KEY_SUFFIX("OFFSET"): self.offset_fmt.format_value(self.offset),
             }
 
         with bin.mmap() as memory:
@@ -250,6 +251,7 @@ class ByteSigEntry(LocationEntry, tag="bytesig", kw_only=True):
                 raise AssertionError(f"Multiple matches found for {self.contents.display_str}")
             return {
                 KEY_AS_IS: self.contents.gameconf_str,
+                KEY_SUFFIX("OFFSET"): self.offset_fmt.format_value(self.offset),
             }