mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-02 22:14:33 +00:00
Removed unused imports and other minor improvements (#1602)
* Removed unused imports and other minor improvements * revert tools/ZAPD/ZAPD/genbuildinfo.py * revert diff.py * Update sym_info.py * revert asm_processor/ --------- Co-authored-by: fig02 <fig02srl@gmail.com> Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
This commit is contained in:
parent
1a8772e540
commit
6eb3bf401c
14 changed files with 13 additions and 21 deletions
|
@ -2,7 +2,6 @@
|
|||
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
|
||||
script_dir = os.path.dirname(os.path.realpath(__file__))
|
||||
root_dir = script_dir + "/../"
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import struct
|
||||
|
||||
script_dir = os.path.dirname(os.path.realpath(__file__))
|
||||
|
|
|
@ -5,7 +5,7 @@ import sys
|
|||
import struct
|
||||
import argparse
|
||||
import re
|
||||
from overlayhelpers.filemap import FileResult, GetFromVRam, GetFromRom
|
||||
from overlayhelpers.filemap import GetFromVRam
|
||||
|
||||
ICHAIN_MACROS = [
|
||||
'ICHAIN_U8',
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
import os
|
||||
import struct
|
||||
import argparse
|
||||
from filemap import FileResult, GetFromVRam, GetFromRom
|
||||
from filemap import GetFromVRam, GetFromRom
|
||||
|
||||
T_DEFAULT = ''
|
||||
TType1 = 'Type1'
|
||||
|
@ -244,7 +244,7 @@ def GetColliderStr(data, off, type):
|
|||
else:
|
||||
cBase[i] = '0x{0:02X}'.format(cBase[i])
|
||||
|
||||
return cf[1].format(*cBase);
|
||||
return cf[1].format(*cBase)
|
||||
|
||||
def GetItems(data, off, count, structf, fmt, size):
|
||||
result = ''
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import os
|
||||
import argparse
|
||||
from filemap import FileResult, GetFromVRam, GetFromRom
|
||||
from filemap import GetFromVRam, GetFromRom
|
||||
|
||||
damage_types = [
|
||||
'Deku nut',
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
import struct
|
||||
import json
|
||||
|
||||
table = None
|
||||
|
@ -82,9 +81,9 @@ def CreateTable():
|
|||
json.dump(dict, table)
|
||||
|
||||
def AddressLookup(lookupTable, addr):
|
||||
start = 0;
|
||||
end = 0;
|
||||
key = None;
|
||||
start = 0
|
||||
end = 0
|
||||
key = None
|
||||
|
||||
for k, v in lookupTable.items():
|
||||
if addr >= k:
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
import os
|
||||
import struct
|
||||
import sys
|
||||
|
||||
SIMPLIFY_OUTPUT = True
|
||||
OVL_KALEIDO_SCOPE_RAM = 0x80813820
|
||||
|
@ -88,7 +87,7 @@ for name, numMaps in SCENES:
|
|||
|
||||
cstr = ""
|
||||
|
||||
cstr += f"PauseMapMarksData gPauseMapMarkDataTable[] = {{\n"
|
||||
cstr += "PauseMapMarksData gPauseMapMarkDataTable[] = {\n"
|
||||
for scenemap in scenemaps:
|
||||
for mapId, map in enumerate(scenemap[1]):
|
||||
cstr += IND(1) + f"// {scenemap[0]} map {mapId}\n"
|
||||
|
|
|
@ -43,7 +43,7 @@ def GetMapsPerScene(ptrs):
|
|||
|
||||
def GetPoints(data, ptr, numPoints):
|
||||
points = []
|
||||
off = RamToOff(ptr);
|
||||
off = RamToOff(ptr)
|
||||
for i in range(numPoints):
|
||||
points.append(struct.unpack_from(">bBB", data[off:off+3]))
|
||||
off = off + 3
|
||||
|
|
|
@ -37,7 +37,7 @@ def get_func_data(funcdata,i):
|
|||
funcname = argdata[0].split(' ')[1]
|
||||
for x in range(len(argdata)):
|
||||
if(argdata[x].count('sfxId')):
|
||||
break;
|
||||
break
|
||||
if(x == len(argdata) - 1):
|
||||
print('sfxId not found in ', funcname)
|
||||
return None,-1
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
import os
|
||||
import sys
|
||||
import struct
|
||||
import argparse
|
||||
import re
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue