From cfa99c5963238f5e8eb7954efc74e7602a03916b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1zaro=20Vieira?= Date: Sat, 11 Jun 2016 23:22:14 -0300 Subject: [PATCH] Separate icon creation from banner creation, since the former is obligatory --- README.md | 3 ++- USAGE.txt | 5 +++-- banner.bat | 3 --- make.bat | 17 +++++++++++++++++ 4 files changed, 22 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a09f326..f04628a 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,13 @@ INSTRUCTIONS: - Create a folder for each game on the input folder (Earthbound, for example). - Put your SNES rom on this folder. +- Put an icon.png on this folder. This can be whatever image you want for the home menu icon (a screenshot, for example). - Run make.bat. - Type in the game's title, publisher, product code (SNS-P-SMWP, for example) and unique id (whatever you want from 000000 to ffffff). - Install the generated CIA file. - Enjoy. -MAKING CUSTOM BANNER AND ICON (OPTIONAL): +CUSTOM BANNER (OPTIONAL): - Put a screenshot of the game on the folder you created for the game, and rename it banner.png. - OPTIONAL: Put a box art or cartridge label image of the game on the input folder, and rename it label.png. - Run banner.bat. diff --git a/USAGE.txt b/USAGE.txt index 2c1a407..9e63abf 100644 --- a/USAGE.txt +++ b/USAGE.txt @@ -3,12 +3,13 @@ INSTRUCTIONS: - Create a folder for each game on the input folder (Earthbound, for example). - Put your SNES rom on this folder. +- Put an icon.png on this folder. This can be whatever image you want for the home menu icon (a screenshot, for example). - Run make.bat. - Type in the game's title, publisher, product code (SNS-P-SMWP, for example) and unique id (whatever you want from 000000 to ffffff). - Install the generated CIA file. - Enjoy. -MAKING CUSTOM BANNER AND ICON (OPTIONAL): +CUSTOM BANNER (OPTIONAL): - Put a screenshot of the game on the folder you created for the game, and rename it banner.png. - OPTIONAL: Put a box art or cartridge label image of the game on the input folder, and rename it label.png. - Run banner.bat. @@ -20,7 +21,7 @@ MAKING CUSTOM BANNER AND ICON (OPTIONAL): - Select the Textures tab then click Open. - Navigate to the banner folder and select banner0.bcmdl. - Select COMMON1 and click Import. -- Navigate to the output folder and select COMMON1.png. +- Navigate to the output folder, then to the game's folder, and select COMMON1.png. - Repeat steps 11 and 12 with COMMON1_2 and COMMON1_3, selecting COMMON1_2.png and COMMON1_3.png. - Save your changes then click Open again. - Navigate to the banner folder again, and select the banner file matching your console's region and language. diff --git a/banner.bat b/banner.bat index 13be034..738ed99 100644 --- a/banner.bat +++ b/banner.bat @@ -66,9 +66,6 @@ tools\convert tools\USA_EN3.png output\label.png -geometry +122+205 -composite " tools\convert "input\%title%\label.png" -resize 54x18! output\label.png tools\convert tools\EUR_EN3.png "output\label.png" -geometry +198+227 -composite "output\%title%\EUR_EN3.png" del output\label.png -tools\convert "input\%title%\banner.png" -resize 42x42! output\tempicon.png -tools\convert tools\icon.png output\tempicon.png -gravity center -composite "output\%title%\icon.png" -del output\tempicon.png tools\convert "input\%title%\banner.png" -resize 120x102! output\tempbanner.png tools\convert tools\COMMON1.png output\tempbanner.png -geometry +4+6 -composite "output\%title%\common1.png" tools\convert "input\%title%\banner.png" -resize 60x51! output\tempbanner.png diff --git a/make.bat b/make.bat index 64f10d1..4a6112d 100644 --- a/make.bat +++ b/make.bat @@ -1,4 +1,5 @@ @echo off +:begin echo blargSNES -- Virtual Console Edition set /p title=Game Title: if not exist "input\%title%\*.smc" if not exist "input\%title%\*.sfc" ( @@ -18,6 +19,14 @@ if exist "input\%title%\*.smc" ( ) if exist "input\%title%\*.bmp" copy /b "input\%title%\*.bmp" romfs\blargSnesBorder.bmp if exist "input\%title%\*.ini" copy /b "input\%title%\*.ini" romfs\blargSnes.ini +if not exist "input\%title%\icon.png" ( + echo ERROR: Icon image not found. + pause + call :exit +) +tools\convert "input\%title%\icon.png" -resize 42x42! output\tempicon.png +tools\convert tools\icon.png output\tempicon.png -gravity center -composite "output\%title%\icon.png" +del output\tempicon.png tools\bannertool makesmdh -s "%title%" -l "%title%" -p "%author%" -i "output\%title%\icon.png" -o "icon.bin" tools\3dstool -c -f banner.bin -t banner --banner-dir banner echo %title%> romfs\rom.txt @@ -28,3 +37,11 @@ del /f /q romfs copy /b banner\backup banner rmdir /s /q banner\backup echo Done +set /p choice3="Do you want to build another CIA? (Y/N): " %=% +if [%choice3%]==[Y] goto begin +if [%choice3%]==[y] goto begin +if [%choice3%]==[N] goto exit +if [%choice3%]==[n] goto exit + +:exit +exit \ No newline at end of file