Skip to content

Commit

Permalink
Adjust module init delay.
Browse files Browse the repository at this point in the history
Previous value broke SMT: Nocturne.
  • Loading branch information
jpd002 committed May 8, 2023
1 parent d223680 commit 4fadc72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/iop/IopBios.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3037,7 +3037,8 @@ uint32 CIopBios::AssembleModuleStarterProc(CMIPSAssembler& assembler)
//there's a chance the current module won't have time to complete its init (through threads)
//properly before another module starts. Capcom vs SNK2 has this problem where multiple
//modules will call SdInit, but the order in which they are called is important.
assembler.LI(CMIPS::A0, 0x40000);
//Shin Megami Tensei: Nocturne is also sensitive to this delay.
assembler.LI(CMIPS::A0, 0x4000);
assembler.ADDIU(CMIPS::V0, CMIPS::R0, SYSCALL_DELAYTHREADTICKS);
assembler.SYSCALL();

Expand Down

0 comments on commit 4fadc72

Please sign in to comment.