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
170 | 170 |
|
171 | 171 |
HleProcessDlistList(hle->user_defined);
|
172 | 172 |
|
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))) {
|
174 | 174 |
*hle->mi_intr |= MI_INTR_SP;
|
175 | 175 |
HleCheckInterrupts(hle->user_defined);
|
176 | 176 |
}
|
476 | 476 |
m64p_rom_header rom_header;
|
477 | 477 |
CoreDoCommand(M64CMD_ROM_GET_HEADER, sizeof(rom_header), &rom_header);
|
478 | 478 |
|
|
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 |
|
479 | 482 |
/* Init hle_gfx and hle_aud variables - with game-specific tweaks */
|
480 | 483 |
if ((strstr((char*)rom_header.Name, (const char*)"WORLD DRIVER CHAMP") != NULL)
|
481 | 484 |
|| (strstr((char*)rom_header.Name, (const char*)"Indiana Jones") != NULL)
|
482 | 485 |
|| (strstr((char*)rom_header.Name, (const char*)"Battle for Naboo") != NULL)
|
483 | 486 |
|| (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 |
}
|
492 | 491 |
|
493 | 492 |
/* notify fallback plugin */
|
494 | 493 |
if (l_InitiateRSP) {
|