summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authoremilybrooks <emilybrooksemilybrooks@gmail.com>2024-02-14 11:26:50 -0700
committerGitHub <noreply@github.com>2024-02-14 11:26:50 -0700
commita60184c64bd669bd31eeafd391c15ffd4a50741c (patch)
treee126899825d95962356daab76bea80112d6cd8e7 /tools
parent689adc94465e36d452322927a95c5cc4b2907966 (diff)
imported data for ac_train_window (#144)
* initial commit * add space * made till_data static
Diffstat (limited to 'tools')
-rw-r--r--tools/splat_ext/af_palette.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/tools/splat_ext/af_palette.py b/tools/splat_ext/af_palette.py
index 837e56f..8a36c09 100644
--- a/tools/splat_ext/af_palette.py
+++ b/tools/splat_ext/af_palette.py
@@ -2,8 +2,6 @@ import struct
from splat.util import options, log
from splat.segtypes.common.codesubsegment import CommonSegCodeSubsegment
-VALID_SIZES = [0x20, 0x40, 0x80, 0x100, 0x200]
-
class N64SegAf_palette(CommonSegCodeSubsegment):
def __init__(self, rom_start, rom_end, type, name, vram_start, args, yaml):
super().__init__(rom_start, rom_end, type, name, vram_start, args=args, yaml=yaml),
@@ -14,9 +12,6 @@ class N64SegAf_palette(CommonSegCodeSubsegment):
data = rom_bytes[self.rom_start : self.rom_end]
lines = []
- if len(data) not in VALID_SIZES:
- log.error(f"Error: {self.name} (0x{len(data):X} bytes) is not a valid palette size ({', '.join(hex(s) for s in VALID_SIZES)})")
-
if not self.data_only:
lines.append(options.opts.generated_c_preamble)
lines.append("")