From a75b12df16e600bc7c4e5a3ab6b3f78e55648eb1 Mon Sep 17 00:00:00 2001 From: headshot2017 <> Date: Tue, 16 Jul 2024 03:24:16 -0400 Subject: [PATCH] move splash image to romdisk --- .gitignore | 1 + Makefile | 3 ++- {cd_root => romdisk}/splash.raw | Bin src/dc_graphics.cpp | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) rename {cd_root => romdisk}/splash.raw (100%) diff --git a/.gitignore b/.gitignore index b0d2332..9e46ac2 100644 --- a/.gitignore +++ b/.gitignore @@ -282,6 +282,7 @@ ReleaseWinXp/ *.elf *.bin *.cdi +*.img cd_root/*.WAV cd_root/*.DAT cd_root/*.EXE diff --git a/Makefile b/Makefile index eefee78..0381085 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,8 @@ LIBS := -lADX # Optional path to a directory of resources to bundle within your ELF binary. # Its contents are accessible via the "/rd/" virtual directory at runtime. -#KOS_ROMDISK_DIR = romdisk +KOS_ROMDISK_DIR = romdisk +OBJS += romdisk.o # Main rule which forces our ELF binary to be built all: rm-elf $(TARGET) diff --git a/cd_root/splash.raw b/romdisk/splash.raw similarity index 100% rename from cd_root/splash.raw rename to romdisk/splash.raw diff --git a/src/dc_graphics.cpp b/src/dc_graphics.cpp index 0bf9b0d..d1279ac 100644 --- a/src/dc_graphics.cpp +++ b/src/dc_graphics.cpp @@ -16,7 +16,7 @@ void dc_graphics::Initialize() // splash image is 320x222 RGB565 splash_raw = new uint16_t[320*222]; - FILE* f = fopen("/cd/splash.raw", "rb"); + FILE* f = fopen("/rd/splash.raw", "rb"); fread(splash_raw, 320*222*2, 1, f); fclose(f); }