MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / Patch_Hacks

Function Patch_Hacks

Source/OSHLE/patch.cpp:439–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437#endif // DUMPOSFUNCTIONS
438
439bool 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.

Callers 1

Patch_RecurseAndFindFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected