Enable piping through BIOS

This commit is contained in:
Jeffrey Pfau 2014-01-29 23:13:44 -08:00
parent 79d4011650
commit f0481d9413
3 changed files with 5 additions and 0 deletions

View File

@ -92,6 +92,9 @@ static THREAD_ENTRY _GBAThreadRun(void* context) {
} }
gba.savefile = savedata; gba.savefile = savedata;
GBALoadROM(&gba, threadContext->fd, threadContext->fname); GBALoadROM(&gba, threadContext->fd, threadContext->fname);
if (threadContext->biosFd >= 0) {
GBALoadBIOS(&gba, threadContext->biosFd);
}
} }
#ifdef USE_DEBUGGER #ifdef USE_DEBUGGER

View File

@ -39,6 +39,7 @@ struct GBAThread {
// Input // Input
struct GBAVideoRenderer* renderer; struct GBAVideoRenderer* renderer;
int fd; int fd;
int biosFd;
const char* fname; const char* fname;
int activeKeys; int activeKeys;
int frameskip; int frameskip;

View File

@ -70,6 +70,7 @@ int main(int argc, char** argv) {
struct GBAThread context = { struct GBAThread context = {
.fd = fd, .fd = fd,
.biosFd = -1,
.fname = fname, .fname = fname,
.useDebugger = 1, .useDebugger = 1,
.renderer = &renderer.d.d, .renderer = &renderer.d.d,