Skip to content

Commit

Permalink
move splash image to romdisk
Browse files Browse the repository at this point in the history
  • Loading branch information
headshot2017 committed Jul 16, 2024
1 parent da95ea5 commit a75b12d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ ReleaseWinXp/
*.elf
*.bin
*.cdi
*.img
cd_root/*.WAV
cd_root/*.DAT
cd_root/*.EXE
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/dc_graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a75b12d

Please sign in to comment.