create border and palette folder for updater transition (#196)

This commit is contained in:
Jamie Blanks
2022-02-02 18:13:11 -05:00
committed by GitHub
parent dd80694afb
commit 104a33b45c
93 changed files with 61 additions and 0 deletions

BIN
Border/de10nano-dark.sgb Normal file

Binary file not shown.

BIN
Border/de10nano.sgb Normal file

Binary file not shown.

BIN
Border/misterkun-green.sgb Normal file

Binary file not shown.

BIN
Border/misterkun-grey.sgb Normal file

Binary file not shown.

BIN
Border/misterkun-purple.sgb Normal file

Binary file not shown.

BIN
Border/misterkun-red.sgb Normal file

Binary file not shown.

Binary file not shown.

BIN
Palette/Default/Andrade.gbp Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Palette/Default/DMG.gbp Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Palette/Default/Kirby.gbp Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Palette/Default/PJ.gbp Normal file

Binary file not shown.

BIN
Palette/Default/Pastel.gbp Normal file

Binary file not shown.

BIN
Palette/Default/Pokemon.gbp Normal file

Binary file not shown.

BIN
Palette/Default/Red.gbp Normal file

Binary file not shown.

Binary file not shown.

BIN
Palette/Default/SML2.gbp Normal file

Binary file not shown.

BIN
Palette/Default/Sameboy.gbp Normal file

Binary file not shown.

BIN
Palette/Default/Yellow.gbp Normal file

Binary file not shown.

Binary file not shown.

BIN
Palette/Extra/Avalon.gbp Normal file

Binary file not shown.

BIN
Palette/Extra/Bicycle.gbp Normal file

Binary file not shown.

BIN
Palette/Extra/Blk Aqu4.gbp Normal file

Binary file not shown.

Binary file not shown.

BIN
Palette/Extra/Blue Seni.gbp Normal file

Binary file not shown.

BIN
Palette/Extra/Cave4.gbp Normal file

Binary file not shown.

BIN
Palette/Extra/Christmas.gbp Normal file

Binary file not shown.

BIN
Palette/Extra/Coldfire.gbp Normal file

Binary file not shown.

BIN
Palette/Extra/Darkboy4.gbp Normal file

Binary file not shown.

Binary file not shown.

BIN
Palette/Extra/Earth.gbp Normal file

Binary file not shown.

Binary file not shown.

BIN
Palette/Extra/Gruel.gbp Normal file

Binary file not shown.

Binary file not shown.

BIN
Palette/Extra/Ice Cream.gbp Normal file

Binary file not shown.

BIN
Palette/Extra/Kiosk.gbp Normal file

Binary file not shown.

BIN
Palette/Extra/Kirokaze.gbp Normal file

Binary file not shown.

BIN
Palette/Extra/Muddysand.gbp Normal file

Binary file not shown.

BIN
Palette/Extra/NASCAR.gbp Normal file

Binary file not shown.

BIN
Palette/Extra/Nostalgia.gbp Normal file

Binary file not shown.

BIN
Palette/Extra/Novocaine.gbp Normal file

Binary file not shown.

BIN
Palette/Extra/Nymph.gbp Normal file

Binary file not shown.

BIN
Palette/Extra/Penny.gbp Normal file

Binary file not shown.

BIN
Palette/Extra/Platinum.gbp Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Palette/Extra/Rustic.gbp Normal file

Binary file not shown.

Binary file not shown.

BIN
Palette/Extra/Spacehaze.gbp Normal file

Binary file not shown.

BIN
Palette/Extra/Wish.gbp Normal file

Binary file not shown.

BIN
Palette/Extra/Workbench.gbp Normal file

Binary file not shown.

Binary file not shown.

BIN
Palette/Extra/blue.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/1-A.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/1-B.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/1-C.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/1-D.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/1-E.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/1-F.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/1-G.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/1-H.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/2-A.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/2-B.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/2-C.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/2-D.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/2-E.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/2-F.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/2-G.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/2-H.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/3-A.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/3-B.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/3-C.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/3-D.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/3-E.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/3-F.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/3-G.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/3-H.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/4-A.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/4-B.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/4-C.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/4-D.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/4-E.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/4-F.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/4-G.gbp Normal file

Binary file not shown.

BIN
Palette/SGB/4-H.gbp Normal file

Binary file not shown.

61
Palette/gbpalette.c Normal file
View File

@@ -0,0 +1,61 @@
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
// GBP file format is simple. There are 4 palette colors using 8 bit
// rgb, starting from lightest ending in darkest for a total of 12 bytes.
// The last several bytes are 0, reserved for future use.
void gbp_get_color(uint8_t *palette, uint32_t index)
{
char buffer[100];
printf ("Red (0-255): ");
fgets(buffer, sizeof(buffer), stdin);
palette[index] = (uint8_t) strtol(buffer, NULL, 10);
printf ("Green (0-255): ");
fgets(buffer, sizeof(buffer), stdin);
palette[index + 1] = (uint8_t) strtol(buffer, NULL, 10);
printf ("Blue (0-255): ");
fgets(buffer, sizeof(buffer), stdin);
palette[index + 2] = (uint8_t) strtol(buffer, NULL, 10);
}
int main (int argc, char **argv)
{
uint8_t palette[16];
memset(palette, 0, sizeof(palette));
if (argc < 2) {
printf("Usage: %s <filename>\n", argv[0]);
return 1;
}
FILE *f = fopen(argv[1], "w");
if (!f) {
printf("Unable to open %s for writing.\n", argv[1]);
return 1;
}
printf("Color 1:\n");
gbp_get_color(palette, 0);
printf("Color 2:\n");
gbp_get_color(palette, 3);
printf("Color 3:\n");
gbp_get_color(palette, 6);
printf("Color 4:\n");
gbp_get_color(palette, 9);
fwrite(palette, 1, 16, f);
fclose(f);
return 0;
}