mirror of
https://github.com/mist-devel/mist-firmware.git
synced 2026-04-25 03:55:33 +00:00
Minimig: load boot art files from the current directory
This commit is contained in:
6
boot.c
6
boot.c
@@ -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;
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
|
||||
6
boot.h
6
boot.h
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user