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;
|
||||
GBALoadROM(&gba, threadContext->fd, threadContext->fname);
|
||||
if (threadContext->biosFd >= 0) {
|
||||
GBALoadBIOS(&gba, threadContext->biosFd);
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef USE_DEBUGGER
|
||||
|
|
|
@ -39,6 +39,7 @@ struct GBAThread {
|
|||
// Input
|
||||
struct GBAVideoRenderer* renderer;
|
||||
int fd;
|
||||
int biosFd;
|
||||
const char* fname;
|
||||
int activeKeys;
|
||||
int frameskip;
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue