remove vmprof stuff

This commit is contained in:
Alex Bates 2020-11-18 10:45:01 +00:00
parent ec96845074
commit a7f5ed8a36
No known key found for this signature in database
GPG Key ID: 5E11C2DB78877706

View File

@ -1,8 +1,6 @@
from segtypes.segment import N64Segment from segtypes.segment import N64Segment
from pathlib import Path from pathlib import Path
import vmprof
CHARSET = { CHARSET = {
0x00: "𝅘𝅥𝅮", 0x00: "𝅘𝅥𝅮",
0x01: "!", 0x01: "!",
@ -351,9 +349,6 @@ class N64SegPaperMarioMessages(N64Segment):
section_offsets.append(offset) section_offsets.append(offset)
pos += 4 pos += 4
log = open("lol.bin", "w+b")
#vmprof.enable(log.fileno(), lines=True)
for i, section_offset in enumerate(section_offsets): for i, section_offset in enumerate(section_offsets):
name = f"{i:02X}" name = f"{i:02X}"
if len(self.files) >= i: if len(self.files) >= i:
@ -381,8 +376,6 @@ class N64SegPaperMarioMessages(N64Segment):
self.f.write(f"[message section=0x{i:02X} index={j}]\n") self.f.write(f"[message section=0x{i:02X} index={j}]\n")
self.write_message_markup(data[msg_offset:]) self.write_message_markup(data[msg_offset:])
self.f.write("\n[/message]\n") self.f.write("\n[/message]\n")
#vmprof.disable()
log.close()
def get_ld_files(self): def get_ld_files(self):
return [("", self.name, ".data")] return [("", self.name, ".data")]