Skip to content

Commit 56df7f5

Browse files
authored
Merge pull request #6 from asiekierka/feature/fix-everdrivex
fix EverDrive GB X3 support, somehow
2 parents fbb8390 + bff2b90 commit 56df7f5

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/gb/everdrivex/diskio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static uint8_t send_cmd (
9696
/* Initialize Disk Drive */
9797
/*-----------------------------------------------------------------------*/
9898

99-
uint32_t CachedSector = 0xffffffff;
99+
uint32_t CachedSector;
100100
uint8_t SectorCache[512];
101101

102102
DSTATUS disk_initialize (void)

src/gb/ezflashjr/diskio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "diskio.h"
99
#include "ezflashjr.h"
1010

11-
uint32_t CachedSector = 0xffffffff;
11+
uint32_t CachedSector;
1212

1313
inline void ezjr_unlock(void) {
1414
EZJR_REG_UNLOCK1 = EZJR_UNLOCK1;

src/gb/vgm_player.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ uint8_t *play_load;
2020

2121
uint8_t load_buffer[LOAD_BUFFER_SIZE];
2222
uint8_t * load_ptr;
23+
#if LOAD_BUFFER_SIZE > 255
2324
uint16_t bytes_loaded;
25+
#else
26+
uint8_t bytes_loaded;
27+
#endif
2428

2529
inline void read_init(void) {
2630
load_ptr = load_buffer; bytes_loaded = 0;

0 commit comments

Comments
 (0)