hacktools 0.38.3__tar.gz → 0.38.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {hacktools-0.38.3/hacktools.egg-info → hacktools-0.38.4}/PKG-INFO +1 -1
- hacktools-0.38.4/hacktools/__init__.py +1 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/hacktools/nitro.py +8 -2
- {hacktools-0.38.3 → hacktools-0.38.4/hacktools.egg-info}/PKG-INFO +1 -1
- hacktools-0.38.3/hacktools/__init__.py +0 -1
- {hacktools-0.38.3 → hacktools-0.38.4}/LICENSE +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/MANIFEST.in +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/README.md +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/hacktools/arch.py +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/hacktools/assets/icon.png +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/hacktools/c_ext/cmp_cri.c +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/hacktools/c_ext/cmp_lzss.c +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/hacktools/c_ext/cmp_misc.c +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/hacktools/c_ext/cmp_racjin.c +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/hacktools/c_ext/inc.h +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/hacktools/common.py +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/hacktools/compression.py +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/hacktools/cpk.py +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/hacktools/gb.py +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/hacktools/gui.py +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/hacktools/nasm.py +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/hacktools/nds.py +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/hacktools/psp.py +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/hacktools/psx.py +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/hacktools/wii.py +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/hacktools/ws.py +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/hacktools.egg-info/SOURCES.txt +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/hacktools.egg-info/dependency_links.txt +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/hacktools.egg-info/requires.txt +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/hacktools.egg-info/top_level.txt +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/setup.cfg +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/setup.py +0 -0
- {hacktools-0.38.3 → hacktools-0.38.4}/tests/test_cmp.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.38.4"
|
|
@@ -1007,7 +1007,7 @@ def writeNCGR(file, ncgr, infile, palettes, width=-1, height=-1):
|
|
|
1007
1007
|
writeNCGRTile(f, pixels, width, ncgr, i, j, palettes[0])
|
|
1008
1008
|
|
|
1009
1009
|
|
|
1010
|
-
def writeNSCR(file, ncgr, nscr, infile, palettes, width=-1, height=-1):
|
|
1010
|
+
def writeNSCR(file, ncgr, nscr, infile, palettes, width=-1, height=-1, skipfirst=False):
|
|
1011
1011
|
try:
|
|
1012
1012
|
from PIL import Image
|
|
1013
1013
|
except ImportError:
|
|
@@ -1029,10 +1029,16 @@ def writeNSCR(file, ncgr, nscr, infile, palettes, width=-1, height=-1):
|
|
|
1029
1029
|
if map.xflip or map.yflip:
|
|
1030
1030
|
x += 1
|
|
1031
1031
|
continue
|
|
1032
|
+
if skipfirst and x == 0:
|
|
1033
|
+
x += 1
|
|
1034
|
+
continue
|
|
1032
1035
|
# Write the tile if it's a new one
|
|
1033
1036
|
if map.tile not in donetiles:
|
|
1034
1037
|
donetiles.append(map.tile)
|
|
1035
|
-
|
|
1038
|
+
tilenum = map.tile
|
|
1039
|
+
if skipfirst:
|
|
1040
|
+
tilenum -= 1
|
|
1041
|
+
f.seek(ncgr.tileoffset + tilenum * (8 * ncgr.bpp))
|
|
1036
1042
|
writeNCGRTile(f, pixels, width, ncgr, i, j, palettes[map.pal])
|
|
1037
1043
|
x += 1
|
|
1038
1044
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.38.3"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|