You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
4
Makefile
4
Makefile
@@ -76,8 +76,8 @@ pokecrystal.gbc: $(crystal_obj)
|
|||||||
pngs:
|
pngs:
|
||||||
find . -iname "*.lz" -exec $(gfx) unlz {} +
|
find . -iname "*.lz" -exec $(gfx) unlz {} +
|
||||||
find . -iname "*.[12]bpp" -exec $(gfx) png {} +
|
find . -iname "*.[12]bpp" -exec $(gfx) png {} +
|
||||||
find . -iname "*.[12]bpp" -exec touch {} +
|
find . -iname "*.[12]bpp" -exec touch {} \;
|
||||||
find . -iname "*.lz" -exec touch {} +
|
find . -iname "*.lz" -exec touch {} \;
|
||||||
|
|
||||||
%.2bpp: %.png ; $(gfx) 2bpp $<
|
%.2bpp: %.png ; $(gfx) 2bpp $<
|
||||||
%.1bpp: %.png ; $(gfx) 1bpp $<
|
%.1bpp: %.png ; $(gfx) 1bpp $<
|
||||||
|
2
extras
2
extras
Submodule extras updated: 5ad74a89ae...3a6ef54a5e
9
gfx.py
9
gfx.py
@@ -20,6 +20,10 @@ def filepath_rules(filepath):
|
|||||||
name, ext = os.path.splitext(filename)
|
name, ext = os.path.splitext(filename)
|
||||||
|
|
||||||
if 'gfx/pics/' in filedir:
|
if 'gfx/pics/' in filedir:
|
||||||
|
if 'unown' in filedir:
|
||||||
|
index = filedir.find('unown_')
|
||||||
|
if index != -1:
|
||||||
|
filedir = filedir[:index + len('unown')] + filedir[index + len('unown_a'):]
|
||||||
if name == 'front':
|
if name == 'front':
|
||||||
args['pal_file'] = os.path.join(filedir, 'normal.pal')
|
args['pal_file'] = os.path.join(filedir, 'normal.pal')
|
||||||
args['pic'] = True
|
args['pic'] = True
|
||||||
@@ -35,7 +39,10 @@ def filepath_rules(filepath):
|
|||||||
args['pic'] = True
|
args['pic'] = True
|
||||||
|
|
||||||
if args.get('pal_file'):
|
if args.get('pal_file'):
|
||||||
args['palout'] = args['pal_file']
|
if os.path.exists(args['pal_file']):
|
||||||
|
args['palout'] = args['pal_file']
|
||||||
|
else:
|
||||||
|
del args['pal_file']
|
||||||
|
|
||||||
if args.get('pic'):
|
if args.get('pic'):
|
||||||
if ext == '.png':
|
if ext == '.png':
|
||||||
|
Reference in New Issue
Block a user