RGBFIX(1) | General Commands Manual | RGBFIX(1) |
rgbfix
—
Game Boy header utility and checksum fixer
rgbfix |
[-jsVv ] [-C |
-c ] [-f
fix_spec] [-i
game_id] [-k
licensee_str] [-l
licensee_id] [-m
mbc_type] [-n
rom_version] [-p
pad_value] [-r
ram_size] [-t
title_str] file |
rgbfix
program changes headers of Game Boy ROM
images. It also performs other correctness operations, such as padding.
Note that options can be abbreviated as long as the abbreviation
is unambiguous: --verb
is
--verbose
, but
--ver
is invalid because it
could also be --version
. The
arguments are as follows:
-C
,
--color-only
-c
flag are set, this
takes precedence.-c
,
--color-compatible
-C
flag are set, -C
takes
precedence.-f
fix_spec,
--fix-spec
fix_spec-i
game_id,
--game-id
game_id-j
,
--non-japanese
-k
licensee_str,
--new-licensee
licensee_str-l
licensee_id,
--old-licensee
licensee_id-m
mbc_type,
--mbc-type
mbc_type-n
rom_version,
--rom-version
rom_version-p
pad_value,
--pad-value
pad_valuergbfix
will automatically pick a size from 32 KiB,
64 KiB, 128 KiB, ..., 8192 KiB. The cartridge size byte
(0x148) will be changed to reflect this new
size.-r
ram_size,
--ram-size
ram_size-s
,
--sgb-compatible
-t
title,
--title
title-c
or -C
). If both this
and the game ID are set, the game ID will overwrite the overlapping
portion of the title.-V
,
--version
-v
,
--validate
-f
lhg
.The following will make a plain, non-color Game Boy game without checking for a valid size:
The following will make a SGB-enabled, color-enabled game with a title of “foobar”, and pad it to a valid size. (The Game Boy itself does not use the title, but some emulators or ROM managers do.)
The following will duplicate the header (sans global checksum) of the game “Survival Kids”:
rgbfix
was originally released by Carsten
Sørensen as a standalone program called gbfix, and was later packaged
in RGBDS by Justin Lloyd. It is now maintained by a number of contributors at
https://github.com/rednex/rgbds.
December 5, 2019 | General |