X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=libpcsxcore%2Fpsxbios.c;h=005e1bb83745d5880618dce5f8990644ff3b945c;hp=f2751b864f0071e5dbdf290177ee7917fc9e0ace;hb=2185e39b1c84bf855deafa5605f4316238d2c354;hpb=ef79bbde537d6b9c745a7d86cb9df1d04c35590d diff --git a/libpcsxcore/psxbios.c b/libpcsxcore/psxbios.c index f2751b86..005e1bb8 100644 --- a/libpcsxcore/psxbios.c +++ b/libpcsxcore/psxbios.c @@ -26,6 +26,9 @@ #include "psxbios.h" #include "psxhw.h" +#undef SysPrintf +#define SysPrintf if (Config.PsxOut) printf + char *biosA0n[256] = { // 0x00 "open", "lseek", "read", "write", @@ -2542,6 +2545,17 @@ void psxBiosInit() { memset(Thread, 0, sizeof(Thread)); Thread[0].status = 2; // main thread + jmp_int = NULL; + pad_buf = NULL; + pad_buf1 = NULL; + pad_buf2 = NULL; + pad_buf1len = pad_buf2len = 0; + heap_addr = NULL; + heap_end = NULL; + CardState = -1; + CurThread = 0; + memset(FDesc, 0, sizeof(FDesc)); + psxMu32ref(0x0150) = SWAPu32(0x160); psxMu32ref(0x0154) = SWAPu32(0x320); psxMu32ref(0x0160) = SWAPu32(0x248);