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;
GBALoadROM(&gba, threadContext->fd, threadContext->fname);
if (threadContext->biosFd >= 0) {
GBALoadBIOS(&gba, threadContext->biosFd);
}
}
#ifdef USE_DEBUGGER

View File

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

View File

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