forked from Mirror/GodMode9
Added GodMode64 and BrickedMode9 FLAVORs
This commit is contained in:
parent
7bdc153ca2
commit
f34fcf6fa3
3
Makefile
3
Makefile
@ -72,7 +72,7 @@ release: clean
|
|||||||
vram0:
|
vram0:
|
||||||
@mkdir -p "$(OUTDIR)"
|
@mkdir -p "$(OUTDIR)"
|
||||||
@echo "Creating $(VRAM_OUT)"
|
@echo "Creating $(VRAM_OUT)"
|
||||||
@$(PY3) utils/add2tar.py $(VRAM_FLAGS) $(VRAM_OUT) $(shell ls -d $(README) $(SPLASH) $(VRAM_DATA)/*)
|
@$(PY3) utils/add2tar.py $(VRAM_FLAGS) $(VRAM_OUT) $(shell ls -d $(README) $(SPLASH) $(OVERRIDE_FONT) $(VRAM_DATA)/*)
|
||||||
|
|
||||||
%.elf: .FORCE
|
%.elf: .FORCE
|
||||||
@echo "Building $@"
|
@echo "Building $@"
|
||||||
@ -81,6 +81,7 @@ vram0:
|
|||||||
firm: $(ELF) vram0
|
firm: $(ELF) vram0
|
||||||
@test `wc -c <$(VRAM_OUT)` -le 3145728
|
@test `wc -c <$(VRAM_OUT)` -le 3145728
|
||||||
@mkdir -p $(call dirname,"$(FIRM)") $(call dirname,"$(FIRMD)")
|
@mkdir -p $(call dirname,"$(FIRM)") $(call dirname,"$(FIRMD)")
|
||||||
|
@echo "[FLAVOR] $(FLAVOR)"
|
||||||
@echo "[VERSION] $(VERSION)"
|
@echo "[VERSION] $(VERSION)"
|
||||||
@echo "[BUILD] $(DBUILTL)"
|
@echo "[BUILD] $(DBUILTL)"
|
||||||
@echo "[FIRM] $(FIRM)"
|
@echo "[FIRM] $(FIRM)"
|
||||||
|
@ -13,6 +13,20 @@ ifeq ($(FLAVOR),SafeMode9)
|
|||||||
CFLAGS += -DSAFEMODE
|
CFLAGS += -DSAFEMODE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(FLAVOR),GodMode64)
|
||||||
|
OVERRIDE_FONT := resources/fonts/font_c64_8x8.pbm
|
||||||
|
CFLAGS += -DDEFAULT_FONT=\"font_c64_8x8.pbm\"
|
||||||
|
CFLAGS += -DCOLOR_STD_FONT=0xD5717B
|
||||||
|
CFLAGS += -DCOLOR_STD_BG=0xA43041
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(FLAVOR),BrickedMode9)
|
||||||
|
OVERRIDE_FONT := resources/fonts/font_nbraille_4x6.pbm
|
||||||
|
CFLAGS += -DDEFAULT_FONT=\"font_nbraille_4x6.pbm\"
|
||||||
|
CFLAGS += -DCOLOR_STD_FONT=0x00FFFF
|
||||||
|
CFLAGS += -DCOLOR_STD_BG=0xFF0000
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(SALTMODE),1)
|
ifeq ($(SALTMODE),1)
|
||||||
CFLAGS += -DSALTMODE
|
CFLAGS += -DSALTMODE
|
||||||
endif
|
endif
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
|
||||||
#define RGB(r,g,b) ((r)<<24|(b)<<16|(g)<<8|(r))
|
#define RGB(r,g,b) ((int) ((b)<<16|(g)<<8|(r)))
|
||||||
|
|
||||||
// a base set of colors below
|
// a base set of colors below
|
||||||
#define COLOR_BLACK RGB(0x00, 0x00, 0x00)
|
#define COLOR_BLACK RGB(0x00, 0x00, 0x00)
|
||||||
@ -31,8 +31,12 @@
|
|||||||
#define COLOR_SUPERFUCHSIA RGB(0xFF, 0x00, 0xEF)
|
#define COLOR_SUPERFUCHSIA RGB(0xFF, 0x00, 0xEF)
|
||||||
|
|
||||||
// standard colors - used everywhere
|
// standard colors - used everywhere
|
||||||
|
#ifndef COLOR_STD_BG
|
||||||
#define COLOR_STD_BG COLOR_BLACK
|
#define COLOR_STD_BG COLOR_BLACK
|
||||||
|
#endif
|
||||||
|
#ifndef COLOR_STD_FONT
|
||||||
#define COLOR_STD_FONT COLOR_WHITE
|
#define COLOR_STD_FONT COLOR_WHITE
|
||||||
|
#endif
|
||||||
|
|
||||||
// colors for GodMode9 file browser
|
// colors for GodMode9 file browser
|
||||||
#define COLOR_SIDE_BAR COLOR_DARKGREY
|
#define COLOR_SIDE_BAR COLOR_DARKGREY
|
||||||
|
@ -4,9 +4,14 @@
|
|||||||
#include "tar.h"
|
#include "tar.h"
|
||||||
|
|
||||||
|
|
||||||
|
// set default font
|
||||||
|
#ifndef DEFAULT_FONT
|
||||||
|
#define DEFAULT_FONT "font_default.pbm"
|
||||||
|
#endif
|
||||||
|
|
||||||
// known file names inside VRAM0 TAR
|
// known file names inside VRAM0 TAR
|
||||||
#define VRAM0_AUTORUN_GM9 "autorun.gm9"
|
#define VRAM0_AUTORUN_GM9 "autorun.gm9"
|
||||||
#define VRAM0_FONT_PBM "font_default.pbm"
|
#define VRAM0_FONT_PBM DEFAULT_FONT
|
||||||
#define VRAM0_SCRIPTS "scripts"
|
#define VRAM0_SCRIPTS "scripts"
|
||||||
#define VRAM0_README_MD "README.md"
|
#define VRAM0_README_MD "README.md"
|
||||||
#define VRAM0_SPLASH_PNG FLAVOR "_splash.png"
|
#define VRAM0_SPLASH_PNG FLAVOR "_splash.png"
|
||||||
|
BIN
resources/BrickedMode9_splash.png
Normal file
BIN
resources/BrickedMode9_splash.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
BIN
resources/GodMode64_splash.png
Normal file
BIN
resources/GodMode64_splash.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.1 KiB |
Loading…
x
Reference in New Issue
Block a user