Skip to content

Commit

Permalink
Added lineal parameter to readNitroGraphic
Browse files Browse the repository at this point in the history
  • Loading branch information
Illidanz committed Apr 17, 2020
1 parent 4383b00 commit e29d860
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions hacktools/nitro.py
Original file line number Diff line number Diff line change
Expand Up @@ -1107,13 +1107,13 @@ def writeNSBMD(file, nsbmd, texi, infile, fixtrasp=False):
common.logError("Texture format 7 not implemented")


def readNitroGraphicNBFC(palettefile, tilefile, mapfile):
def readNitroGraphicNBFC(palettefile, tilefile, mapfile, lineal=False):
if not os.path.isfile(palettefile):
common.logError("Palette", palettefile, "not found")
return [], None
palettes = readNBFP(palettefile)
# Read tiles
nbfc = readNBFC(tilefile, palettes[0], False)
nbfc = readNBFC(tilefile, palettes[0], lineal)
# Read maps
nbfs = None
if os.path.isfile(mapfile):
Expand All @@ -1123,13 +1123,13 @@ def readNitroGraphicNBFC(palettefile, tilefile, mapfile):
return palettes, nbfc, nbfs


def readNitroGraphicNTFT(palettefile, tilefile):
def readNitroGraphicNTFT(palettefile, tilefile, lineal=True):
if not os.path.isfile(palettefile):
common.logError("Palette", palettefile, "not found")
return [], None
palettes = readNBFP(palettefile)
# Read tiles
ntft = readNBFC(tilefile, palettes[0], True)
ntft = readNBFC(tilefile, palettes[0], lineal)
return palettes, ntft


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="hacktools",
version="0.8.0",
version="0.8.1",
author="Illidan",
description="A set of utilities and tools for rom hacking and translations.",
long_description=long_description,
Expand Down

0 comments on commit e29d860

Please sign in to comment.