mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Replaced NumberPatchLoop with a simple toggleable MultiPatches. Reason: While NumberPatchLoop allows even larger patch numbers, the built-in valid range of patch numbers of 000 ~ 999 is more than enough already.
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
+3
-9
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user