Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # SPINBALL text insert, byte-edit only
- # notes:
- # PEA (label).l | 0x4879 label
- # User
- Tag_File = "str_list.txt"
- Rom_File = "Sonic Spinball (U) [!].bin"
- input_file = open(Tag_File,"r")
- output_file = open(Rom_File,"r+")
- # *********************************************
- # Start
- # *********************************************
- looping=True
- while looping:
- a = input_file.readline().split("|")
- if len(a) == 0:
- looping=False
- else:
- b = a[1]
- output_file.seek(int(b))
- a = a[2]
- b = len(a)-2
- c = a[1:b]
- d = len(c)
- #print(c)
- #print(hex(output_file.tell()))
- for e in range(d):
- a = c[e]
- output_file.write(a)
Add Comment
Please, Sign In to add comment