Changeset 993 for Daodan/src/patches
- Timestamp:
- Apr 6, 2014, 7:06:02 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/src/patches/Patches.c
r992 r993 19 19 static void ONICALL DD_ONiOGU_GammaSlider_SetRange(void* window, int min_value, int max_value) 20 20 { 21 WMrWindow_SetEnabled(window, M3gResolutionSwitch && opt_gamma); 21 ConfigOption_t* co = DDrConfig_GetOptOfType("options.gamma", C_BOOL); 22 WMrWindow_SetEnabled(window, M3gResolutionSwitch && co->value.intBoolVal); 22 23 WMrSlider_SetRange(window, min_value, max_value); 23 24 } … … 79 80 void ONICALL DDrGame_Init() 80 81 { 81 if (opt_usedaodanbsl) 82 ConfigOption_t* co = DDrConfig_GetOptOfType("options.usedaodanbsl", C_BOOL); 83 if (co->value.intBoolVal) 82 84 SLrDaodan_Initialize(); 83 85 } … … 287 289 DWORD err; 288 290 289 DDrStartupMessage("Daodan: Loading chinese DLL");291 STARTUPMESSAGE("Loading chinese DLL", 0); 290 292 dll = LoadLibrary("xfhsm_oni.dll"); 291 293 err = GetLastError(); … … 300 302 char msg[100]; 301 303 FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, err, 0, msg, 100, NULL); 302 DDrStartupMessage("Daodan:Loading DLL failed with error %i: %s", err, msg);304 STARTUPMESSAGE("Loading DLL failed with error %i: %s", err, msg); 303 305 } 304 306 } … … 606 608 bool DD_Patch_Init() 607 609 { 608 DDrStartupMessage("Daodan: Patching engine");609 610 if ( patch_alttab)610 STARTUPMESSAGE("Patching engine", 0); 611 612 if (DDrConfig_GetOptOfType("patches.alttab", C_BOOL)->value.intBoolVal) 611 613 DD_Patch_AltTab(); 612 614 613 if ( patch_argb8888)615 if (DDrConfig_GetOptOfType("patches.argb8888", C_BOOL)->value.intBoolVal) 614 616 DD_Patch_ARGB8888(); 615 617 616 if ( patch_binkplay)618 if (DDrConfig_GetOptOfType("patches.binkplay", C_BOOL)->value.intBoolVal) 617 619 DD_Patch_BinkPlay(); 618 620 619 if ( patch_bsl)621 if (DDrConfig_GetOptOfType("patches.bsl", C_BOOL)->value.intBoolVal) 620 622 DD_Patch_BSL(); 621 623 622 if ( patch_cheater)624 if (DDrConfig_GetOptOfType("patches.cheater", C_BOOL)->value.intBoolVal) 623 625 DD_Patch_Cheater(); 624 626 625 if ( patch_cheatsenabled)627 if (DDrConfig_GetOptOfType("patches.cheatsenabled", C_BOOL)->value.intBoolVal) 626 628 DD_Patch_CheatsEnabled(); 627 629 628 if ( patch_cheattable)630 if (DDrConfig_GetOptOfType("patches.cheattable", C_BOOL)->value.intBoolVal) 629 631 DD_Patch_CheatTable(); 630 632 631 if ( patch_chinese)633 if (DDrConfig_GetOptOfType("patches.chinese", C_BOOL)->value.intBoolVal) 632 634 DD_Patch_Chinese(); 633 635 634 if ( patch_clipcursor)636 if (DDrConfig_GetOptOfType("patches.clipcursor", C_BOOL)->value.intBoolVal) 635 637 DD_Patch_ClipCursor(); 636 638 637 if ( patch_cooldowntimer)639 if (DDrConfig_GetOptOfType("patches.cooldowntimer", C_BOOL)->value.intBoolVal) 638 640 DD_Patch_CooldownTimer(); 639 641 640 if ( patch_daodandisplayenum)642 if (DDrConfig_GetOptOfType("patches.daodandisplayenum", C_BOOL)->value.intBoolVal) 641 643 DD_Patch_DaodanDisplayEnum(); 642 644 643 if ( patch_directinput)645 if (DDrConfig_GetOptOfType("patches.directinput", C_BOOL)->value.intBoolVal) 644 646 DD_Patch_DirectInput(); 645 647 646 if ( patch_disablecmdline)648 if (DDrConfig_GetOptOfType("patches.disablecmdline", C_BOOL)->value.intBoolVal) 647 649 DD_Patch_DisableCmdLine(); 648 650 649 if ( patch_fonttexturecache)651 if (DDrConfig_GetOptOfType("patches.fonttexturecache", C_BOOL)->value.intBoolVal) 650 652 DD_Patch_FontTextureCache(); 651 653 652 if ( patch_getcmdline)654 if (DDrConfig_GetOptOfType("patches.getcmdline", C_BOOL)->value.intBoolVal) 653 655 DD_Patch_GetCmdLine(); 654 656 655 if ( patch_hdscreens_lowres)657 if (DDrConfig_GetOptOfType("patches.hdscreens_lowres", C_BOOL)->value.intBoolVal) 656 658 DD_Patch_HDScreens_LowRes(); 657 659 658 if ( patch_highres_console)660 if (DDrConfig_GetOptOfType("patches.highres_console", C_BOOL)->value.intBoolVal) 659 661 DD_Patch_HighresConsole(); 660 662 661 if ( patch_kickguns)663 if (DDrConfig_GetOptOfType("patches.kickguns", C_BOOL)->value.intBoolVal) 662 664 DD_Patch_KickGuns(); 663 665 … … 665 667 // DD_Patch_KillVTune(); 666 668 667 if ( patch_largetextures)669 if (DDrConfig_GetOptOfType("patches.largetextures", C_BOOL)->value.intBoolVal) 668 670 DD_Patch_LargeTextures(); 669 671 670 if ( patch_levelplugins)672 if (DDrConfig_GetOptOfType("patches.levelplugins", C_BOOL)->value.intBoolVal) 671 673 DD_Patch_LevelPlugins(); 672 674 673 if ( patch_newweapon)675 if (DDrConfig_GetOptOfType("patches.newweap", C_BOOL)->value.intBoolVal) 674 676 DD_Patch_NewWeap(); 675 677 676 if ( patch_nomultibyte)678 if (DDrConfig_GetOptOfType("patches.nomultibyte", C_BOOL)->value.intBoolVal) 677 679 DD_Patch_NoMultiByte(); 678 680 679 if (patch_optionsvisible)681 if (DDrConfig_GetOptOfType("patches.optionsvisible", C_BOOL)->value.intBoolVal) 680 682 DD_Patch_OptionsVisible(); 681 683 682 if ( patch_particledisablebit)684 if (DDrConfig_GetOptOfType("patches.particledisablebit", C_BOOL)->value.intBoolVal) 683 685 DD_Patch_ParticleDisableBit(); 684 686 685 if ( patch_pathfinding)687 if (DDrConfig_GetOptOfType("patches.pathfinding", C_BOOL)->value.intBoolVal) 686 688 DD_Patch_PathFinding(); 687 689 688 if ( patch_projaware)690 if (DDrConfig_GetOptOfType("patches.projaware", C_BOOL)->value.intBoolVal) 689 691 DD_Patch_ProjAware(); 690 692 691 if ( patch_safeprintf)693 if (DDrConfig_GetOptOfType("patches.safeprintf", C_BOOL)->value.intBoolVal) 692 694 DD_Patch_SafePrintf(); 693 695 694 if ( patch_showalllasersights)696 if (DDrConfig_GetOptOfType("patches.showalllasersights", C_BOOL)->value.intBoolVal) 695 697 DD_Patch_ShowAllLasersights(); 696 698 697 if ( patch_showtriggervolumes)699 if (DDrConfig_GetOptOfType("patches.showtriggervolumes", C_BOOL)->value.intBoolVal) 698 700 DD_Patch_ShowTriggerVolumes(); 699 701 700 if ( patch_throwtest)702 if (DDrConfig_GetOptOfType("patches.throwtest", C_BOOL)->value.intBoolVal) 701 703 DD_Patch_Throwtest(); 702 704 703 if ( patch_usedaodangl)705 if (DDrConfig_GetOptOfType("patches.usedaodangl", C_BOOL)->value.intBoolVal) 704 706 DD_Patch_UseDaodanGL(); 705 707 706 if ( patch_usegettickcount)708 if (DDrConfig_GetOptOfType("patches.usegettickcount", C_BOOL)->value.intBoolVal) 707 709 DD_Patch_UseGetTickCount(); 708 710 709 if ( patch_wpfadetime)711 if (DDrConfig_GetOptOfType("patches.wpfadetime", C_BOOL)->value.intBoolVal) 710 712 DD_Patch_WpFadetime(); 711 713
Note:
See TracChangeset
for help on using the changeset viewer.