mad3001 escribió: ↑21 Feb 2021, 20:55
Bueno, si hay más interesados en ponerlo como opción podríamos verlo (para no tener que andar con el editor hexadecimal y tal)
Escribí una pequeña herramienta DOS para usuarios de Windows.
Tal vez como ayuda temporal para cambiar de color.
Si no se le permite mostrar esta, por favor borrarlo.
ChangeRomset.bat
-------------------------
@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
if not exist bincmp.exe goto :missing
if not exist sfk.exe goto :missing
cls
echo.
:BEGINN
sfk echo [yellow] Contents of romset
sfk echo [green] ******************
echo.
SET index=1
FOR %%f IN (*.rom) DO (
SET file!index!=%%f
ECHO !index! - %%f
SET /A index=!index!+1
)
echo.
echo.
echo.
echo.
SET /P selection=select file by number:
echo.
IF ERRORLEVEL 1 (
ECHO invalid number selected
goto :BEGINN
)
SET file%selection% >nul 2>&1
IF %selection% == 99 goto :END
IF ERRORLEVEL 1 (
ECHO invalid number selected
cls
goto :BEGINN
)
IF ERRORLEVEL 1 (
ECHO invalid number selected
EXIT /B 1
)
CALL :RESOLVE %%file%selection%%%
echo.
cls
echo %romfile%
sfk echo [green]*****************************
find /c "Multiply" %romfile% >NUL
if %Errorlevel%==1 goto :no_found
if %Errorlevel%==0 echo Support for Multiply is available
echo.
set space=" "
echo.
echo Sample Color Value 1 Value 2
echo.
sfk echo [yellow]*********************%space%70%space%48
sfk echo [Cyan]*********************%space%68%space%50
sfk echo [green]*********************%space%60%space%58
sfk echo [magenta]*********************%space%58%space%60
sfk echo [red]*********************%space%50%space%68
sfk echo [blue]*********************%space%48%space%78
echo.
SET /P NEW1Wert=new value 1 [default value = 78]:
SET NEWvalue1=%NEW1Wert%
echo.
SET /P NEW2Wert=new value 2 [default value = 40]:
SET NEWvalue2=%NEW2Wert%
echo.
bincmp %romfile% -x -patchstr "74223: ? %NEWvalue1%;75682: ? %NEWvalue2%" >NUL
echo.
echo Values in ROM file have changed
echo.
goto :end
:no_found
echo ROM file is not compatible with the Multiply
goto :end
:RESOLVE
SET romfile=%1
GOTO :EOF
:end
echo File is terminated
pause >nul
exit
:missing
echo required tools:
echo.
echo bincmp.exe
https://sourceforge.net/projects/bincmp/
echo sfk.exe
http://stahlworks.com/dev/swiss-file-knife.html
echo.
goto :end