@joshbalfour/gb-custom-logo
v1.0.9
Published
Patch the header of a gameboy ROM. [Example values in Pandoc.](https://gbdev.io/pandocs/The_Cartridge_Header.html#the-cartridge-header)
Readme
@joshbalfour/gb-custom-logo
Patch the header of a gameboy ROM. Example values in Pandoc.
Requirements
Node > 18
Usage:
In a directory with a gb-custom-logo.config.json file:
{
"title": "ZGB_TEMPLAT",
"manufacturerCode": "JOSH",
"cgbFlag": "80",
"newLicenseeCode": "3030",
"sgbFlag": "00",
"cartridgeType": "19",
"romSize": "01",
"ramSize": "00",
"destinationCode": "00",
"oldLicenseeCode": "33",
"romVersionNumber": "01",
"nintendoLogo": "./test/logo.png",
"romLocation": "./test/ZGB_TEMPLATE.gbc",
"outputRomLocation": "./test/ZGB_TEMPLATE.patched.gbc"
}Run:
npx -y @joshbalfour/gb-custom-logo@latestnintendoLogo
- Can be a bmp, gif, jpeg, png, or tiff file
- Will end up being black and white
- Must have a white background
- Ideally 48 x 8 (will get resized to this using nearest neighbour otherwise)
