mirror of https://github.com/mgba-emu/mgba.git
Enable piping through BIOS
This commit is contained in:
parent
79d4011650
commit
f0481d9413
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue