all repos — mgba @ f0481d94135b9f671bea3847559431e67a07bf48

mGBA Game Boy Advance Emulator

Enable piping through BIOS
Jeffrey Pfau jeffrey@endrift.com
Wed, 29 Jan 2014 23:13:44 -0800
commit

f0481d94135b9f671bea3847559431e67a07bf48

parent

79d4011650ec05c332666bce059cb10cbaf2884e

3 files changed, 5 insertions(+), 0 deletions(-)

jump to
M src/gba/gba-thread.csrc/gba/gba-thread.c

@@ -92,6 +92,9 @@ }

} gba.savefile = savedata; GBALoadROM(&gba, threadContext->fd, threadContext->fname); + if (threadContext->biosFd >= 0) { + GBALoadBIOS(&gba, threadContext->biosFd); + } } #ifdef USE_DEBUGGER
M src/gba/gba-thread.hsrc/gba/gba-thread.h

@@ -39,6 +39,7 @@

// Input struct GBAVideoRenderer* renderer; int fd; + int biosFd; const char* fname; int activeKeys; int frameskip;
M src/platform/sdl/gl-main.csrc/platform/sdl/gl-main.c

@@ -70,6 +70,7 @@ }

struct GBAThread context = { .fd = fd, + .biosFd = -1, .fname = fname, .useDebugger = 1, .renderer = &renderer.d.d,