Codebase list mupen64plus-rsp-hle / d9c297c
Merge pull request #62 from Gillou68310/mi_intr Don't set MI_INTR_SP if task is not finished yet Richard Goedeken authored 6 years ago GitHub committed 6 years ago
2 changed file(s) with 8 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
170170
171171 HleProcessDlistList(hle->user_defined);
172172
173 if ((*hle->sp_status & SP_STATUS_INTR_ON_BREAK)) {
173 if ((*hle->sp_status & SP_STATUS_INTR_ON_BREAK) && (*hle->sp_status & (SP_STATUS_TASKDONE | SP_STATUS_BROKE | SP_STATUS_HALT))) {
174174 *hle->mi_intr |= MI_INTR_SP;
175175 HleCheckInterrupts(hle->user_defined);
176176 }
476476 m64p_rom_header rom_header;
477477 CoreDoCommand(M64CMD_ROM_GET_HEADER, sizeof(rom_header), &rom_header);
478478
479 g_hle.hle_gfx = ConfigGetParamBool(l_ConfigRspHle, RSP_HLE_CONFIG_HLE_GFX);
480 g_hle.hle_aud = ConfigGetParamBool(l_ConfigRspHle, RSP_HLE_CONFIG_HLE_AUD);
481
479482 /* Init hle_gfx and hle_aud variables - with game-specific tweaks */
480483 if ((strstr((char*)rom_header.Name, (const char*)"WORLD DRIVER CHAMP") != NULL)
481484 || (strstr((char*)rom_header.Name, (const char*)"Indiana Jones") != NULL)
482485 || (strstr((char*)rom_header.Name, (const char*)"Battle for Naboo") != NULL)
483486 || (strstr((char*)rom_header.Name, (const char*)"Stunt Racer 64") != NULL)) {
484 g_hle.hle_gfx = 0;
485 }
486 else {
487 g_hle.hle_gfx = ConfigGetParamBool(l_ConfigRspHle, RSP_HLE_CONFIG_HLE_GFX);
488 }
489
490 g_hle.hle_aud = ConfigGetParamBool(l_ConfigRspHle, RSP_HLE_CONFIG_HLE_AUD);
491
487
488 if(l_InitiateRSP)
489 g_hle.hle_gfx = 0;
490 }
492491
493492 /* notify fallback plugin */
494493 if (l_InitiateRSP) {