mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 08:52:40 +01:00
remove vmprof stuff
This commit is contained in:
parent
ec96845074
commit
a7f5ed8a36
@ -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")]
|
||||||
|
Loading…
Reference in New Issue
Block a user