| 437 | #endif // DUMPOSFUNCTIONS |
| 438 | |
| 439 | bool Patch_Hacks( PatchSymbol * ps ) |
| 440 | { |
| 441 | bool Found( false ); |
| 442 | |
| 443 | // Hacks to disable certain os funcs in games that causes issues |
| 444 | // This alot cheaper than adding a check on the func itself, this is only checked once -Salvy |
| 445 | // Eventually we should fix them though |
| 446 | // |
| 447 | // osSendMesg - Breaks the in game menu in Zelda OOT |
| 448 | // osSendMesg - Causes Animal Corssing to freeze after the N64 logo |
| 449 | // osSendMesg - Causes Clay Fighter 63 1-3 to not boot |
| 450 | // |
| 451 | switch( g_ROM.GameHacks ) |
| 452 | { |
| 453 | case ZELDA_OOT: |
| 454 | case ANIMAL_CROSSING: |
| 455 | case CLAY_FIGHTER_63: |
| 456 | |
| 457 | if( strcmp("osSendMesg", ps->Name) == 0) |
| 458 | { |
| 459 | Found = true; |
| 460 | break; |
| 461 | } |
| 462 | break; |
| 463 | |
| 464 | // |
| 465 | // __osDispatchThread and __osEnqueueAndYield causes Body Harvest to not boot |
| 466 | // This game is very sensitive with IRQs, see DMA.cpp (DMA_SI_CopyToDRAM) |
| 467 | case BODY_HARVEST: |
| 468 | if( strcmp("__osDispatchThread", ps->Name) == 0) |
| 469 | { |
| 470 | Found = true; |
| 471 | break; |
| 472 | |
| 473 | } |
| 474 | if( strcmp("__osEnqueueAndYield", ps->Name) == 0) |
| 475 | { |
| 476 | Found = true; |
| 477 | break; |
| 478 | |
| 479 | } |
| 480 | break; |
| 481 | default: |
| 482 | break; |
| 483 | } |
| 484 | |
| 485 | return Found; |
| 486 | } |
| 487 | |
| 488 | |
| 489 | //ToDo: Add Status bar for loading OSHLE Patch Symbols. |
no outgoing calls
no test coverage detected