Skip to content

Commit

Permalink
Update to mGBA 0.11-8583-279485fc3.
Browse files Browse the repository at this point in the history
Resynchronize with Game Boy Interface.
  • Loading branch information
Extrems committed Oct 26, 2024
1 parent 3f18f32 commit 59db6c3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion mgba
Submodule mgba updated 194 files
6 changes: 3 additions & 3 deletions source/gba.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ static uint32_t GBAEncrypt(uint32_t addr, uint32_t val, uint32_t *key)
{
*key = *key * bswap32('Kawa') + 1;
val ^= *key;
val ^= ~addr + 1;
val ^= -addr;
val ^= bswap32(' by ');
return val;
}
Expand Down Expand Up @@ -126,13 +126,13 @@ static void *thread_func(void *arg)
case SI_GC_CONTROLLER:
case SI_GC_WAVEBIRD:
if (gc_controller.status[chan].err == PAD_ERR_NO_CONTROLLER) {
gc_controller.status[chan].err = PAD_ERR_NOT_READY;
gc_controller.status[chan].err = PAD_ERR_NOT_READY;
reset |= SI_CHAN_BIT(chan);
}
break;
case SI_GC_STEERING:
if (gc_steering.status[chan].err == SI_STEERING_ERR_NO_CONTROLLER)
gc_steering.status[chan].err = SI_ResetSteering(chan);
gc_steering.status[chan].err = SI_ResetSteering(chan);
break;
case SI_N64_CONTROLLER:
N64_ReadAsync(chan, &n64_controller.status[chan], NULL);
Expand Down
4 changes: 2 additions & 2 deletions source/gx.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,8 @@ void *GXOpenFile(const char *file)
gzFile zfp = gzopen(file, "rb");

return funopen(zfp,
(int (*)(void *, char *, int))gzread,
(int (*)(void *, const char *, int))gzwrite,
(int (*)(void *, char *, size_t))gzread,
(int (*)(void *, const char *, size_t))gzwrite,
(fpos_t (*)(void *, fpos_t, int))gzseek,
(int (*)(void *))gzclose);
}
Expand Down
2 changes: 1 addition & 1 deletion source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ static void _drawFrame(struct mGUIRunner *runner, bool faded)
dispsize[1] = GX_EndDispList();
}

static void _drawScreenshot(struct mGUIRunner *runner, const color_t *pixels, unsigned width, unsigned height, bool faded)
static void _drawScreenshot(struct mGUIRunner *runner, const mColor *pixels, unsigned width, unsigned height, bool faded)
{
rect_t planar_src = {0, 0, width, height};
rect_t prescale_src = {0, 0, planar_src.w * state.scale, planar_src.h * state.scale};
Expand Down

0 comments on commit 59db6c3

Please sign in to comment.