Skip to content

Commit

Permalink
Minimig: load boot art files from the current directory
Browse files Browse the repository at this point in the history
  • Loading branch information
gyurco committed Jun 15, 2024
1 parent d3e5c92 commit cef4886
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static void BootUploadLogo()
int i=0;
int adr;

if (FileOpenCompat(&file, LOGO_FILE, FA_READ) == FR_OK) {
if (f_open(&file, LOGO_FILE, FA_READ) == FR_OK) {
FileReadBlock(&file, sector_buffer);
mem_upload_init(SCREEN_BPL1+LOGO_OFFSET);
adr = SCREEN_BPL1+LOGO_OFFSET;
Expand Down Expand Up @@ -141,7 +141,7 @@ static void BootUploadBall()
int i=0;
int adr;

if (FileOpenCompat(&file, BALL_FILE, FA_READ) == FR_OK) {
if (f_open(&file, BALL_FILE, FA_READ) == FR_OK) {
FileReadBlock(&file, sector_buffer);
mem_upload_init(BALL_ADDRESS);
adr = BALL_ADDRESS;
Expand Down Expand Up @@ -171,7 +171,7 @@ static void BootUploadCopper()
int i=0;
int adr;

if (FileOpenCompat(&file, COPPER_FILE, FA_READ) == FR_OK) {
if (f_open(&file, COPPER_FILE, FA_READ) == FR_OK) {
FileReadBlock(&file, sector_buffer);
mem_upload_init(COPPER_ADDRESS);
adr = COPPER_ADDRESS;
Expand Down
6 changes: 3 additions & 3 deletions boot.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
#define LOGO_OFFSET (64*SCREEN_WIDTH/8+24)
#define LOGO_LSKIP (SCREEN_WIDTH-LOGO_WIDTH)/8
#define LOGO_SIZE 0x680
#define LOGO_FILE "MINIMIG ART"
#define LOGO_FILE "MINIMIG.ART"

#define BALL_SIZE 0x4000
#define BALL_ADDRESS 0x8a000
#define BALL_FILE "MINIMIG BAL"
#define BALL_FILE "MINIMIG.BAL"

#define COPPER_SIZE 0x35c
#define COPPER_ADDRESS 0x8e680
#define COPPER_FILE "MINIMIG COP"
#define COPPER_FILE "MINIMIG.COP"

#define BLITS 64

Expand Down

0 comments on commit cef4886

Please sign in to comment.