git subrepo pull tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "e8f7675322"
upstream:
  origin:   "https://github.com/ethteck/splat.git"
  branch:   "master"
  commit:   "e8f7675322"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
This commit is contained in:
Ethan Roseman 2021-02-08 20:03:30 +09:00
parent 39ea4c7a86
commit 27d7bea8ee
2 changed files with 5 additions and 2 deletions

View File

@ -6,7 +6,7 @@
[subrepo]
remote = https://github.com/ethteck/splat.git
branch = master
commit = 3a66565988438d58d8c53449254a49f31ff2817c
parent = e578b7d90ac01d1e3f235fa6ebec09a0ddb5c415
commit = e8f767532226d2c9d8f84400d5652e4d60b20262
parent = 39ea4c7a86197cf7a4bd244ee55520c0be051c52
method = merge
cmdver = 0.4.3

View File

@ -227,6 +227,9 @@ class BinSubsegment(Subsegment):
f.write(rom_bytes[self.rom_start : self.rom_end])
class PaletteSubsegment(Subsegment):
def should_run(self, options):
return super().should_run(options) or "img" in options["modes"]
def split_inner(self, segment, rom_bytes, base_path, generic_out_path):
img_bytes = rom_bytes[self.rom_start : self.rom_end]