Enable piping through BIOS
Jeffrey Pfau jeffrey@endrift.com
Wed, 29 Jan 2014 23:13:44 -0800
3 files changed,
5 insertions(+),
0 deletions(-)
M
src/gba/gba-thread.c
→
src/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.h
→
src/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.c
→
src/platform/sdl/gl-main.c
@@ -70,6 +70,7 @@ }
struct GBAThread context = { .fd = fd, + .biosFd = -1, .fname = fname, .useDebugger = 1, .renderer = &renderer.d.d,