diff --git a/artifacts/ddraw.ini b/artifacts/ddraw.ini index 4fdbe2cc..e5e9812f 100644 --- a/artifacts/ddraw.ini +++ b/artifacts/ddraw.ini @@ -201,9 +201,9 @@ WorldMapSlots=0 ;To use a patch file other than patch000.dat, uncomment the next line and add your new file name ;If you want to check for multiple patch files, you can include a %d in the file name (sprintf syntax) ;By default, only the first patch file found will be used. -;If you want to load multiple patch files at once, uncomment the NumberPatchLoop line and set it to the number of files to check for +;If you want to load multiple patch files at once, uncomment the MultiPatches line and set it to 1 ;PatchFile=patch%03d.dat -;NumberPatchLoop=100 +;MultiPatches=0 ;To change the default and starting player models, uncomment the next four lines. ;The default models can also be changed ingame via script diff --git a/sfall/main.cpp b/sfall/main.cpp index aaf5256a..032293c9 100644 --- a/sfall/main.cpp +++ b/sfall/main.cpp @@ -1208,16 +1208,10 @@ static void DllMain2() { CritInit(); - int number_patch_loop=GetPrivateProfileInt("Misc", "NumberPatchLoop", -1, ini); - if(number_patch_loop>-1) { + if (GetPrivateProfileInt("Misc", "MultiPatches", 0, ini)) { dlog("Applying load multiple patches patch.", DL_INIT); - // Disable check - SafeWrite8(0x0444363, 0xE9); - SafeWrite32(0x0444364, 0xFFFFFFB9); - // New loop count - SafeWrite32(0x0444357, number_patch_loop); - // Change step from 2 to 1 - SafeWrite8(0x0444354, 0x90); + SafeWrite8(0x444338, 0x90); // Change step from 2 to 1 + SafeWrite32(0x444363, 0xEB909090); // Disable check dlogr(" Done", DL_INIT); }