Code edits to SpeedInventoryPCRotation

Updated version number.
This commit is contained in:
NovaRain
2022-08-09 21:32:59 +08:00
parent efdd6afa34
commit 13cf81e151
3 changed files with 7 additions and 12 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
;sfall configuration settings ;sfall configuration settings
;v4.3.6.1 ;v4.3.7
[Main] [Main]
;Set to 1 to enable the built-in High Resolution Patch mode that is similar to the hi-res patch by Mash ;Set to 1 to enable the built-in High Resolution Patch mode that is similar to the hi-res patch by Mash
@@ -453,7 +453,7 @@ NPCsTryToSpendExtraAP=0
AllowLargeTiles=0 AllowLargeTiles=0
;Set to 1 to boost the maximum number of tile FRMs from 4096 to 16383 ;Set to 1 to boost the maximum number of tile FRMs from 4096 to 16383
;This option is always enabled in 4.3.6.1/3.8.36.1 or later. The information is left for reference only ;This option is always enabled in 4.3.7/3.8.37 or later. The information is left for reference only
MoreTiles=1 MoreTiles=1
;Change the Skilldex cursor FRM numbers ;Change the Skilldex cursor FRM numbers
@@ -514,7 +514,7 @@ SpeedInterfaceCounterAnims=0
ScienceOnCritters=0 ScienceOnCritters=0
;Modify this value to change the player's speed of rotation on the inventory and character screens ;Modify this value to change the player's speed of rotation on the inventory and character screens
;Default is 166 ;Default is 166 (lower - faster; valid range: 0..1000)
SpeedInventoryPCRotation=166 SpeedInventoryPCRotation=166
;Modify the number of the extra interface boxes available to modders. (Default is 5, and the maximum is 95) ;Modify the number of the extra interface boxes available to modders. (Default is 5, and the maximum is 95)
+1 -6
View File
@@ -1071,12 +1071,7 @@ static void InterfaceWindowPatch() {
} }
static void InventoryCharacterRotationSpeedPatch() { static void InventoryCharacterRotationSpeedPatch() {
long setting = IniReader::GetConfigInt("Misc", "SpeedInventoryPCRotation", 166); SimplePatch<DWORD>(0x47066B, "Misc", "SpeedInventoryPCRotation", 166, 0, 1000);
if (setting != 166 && setting <= 1000) {
dlog("Applying SpeedInventoryPCRotation patch.", DL_INIT);
SafeWrite32(0x47066B, setting);
dlogr(" Done", DL_INIT);
}
} }
static void UIAnimationSpeedPatch() { static void UIAnimationSpeedPatch() {
+3 -3
View File
@@ -24,7 +24,7 @@
#define VERSION_MAJOR 4 #define VERSION_MAJOR 4
#define VERSION_MINOR 3 #define VERSION_MINOR 3
#define VERSION_BUILD 6 #define VERSION_BUILD 7
#define VERSION_REV 1 #define VERSION_REV 0
#define VERSION_STRING "4.3.6.1" #define VERSION_STRING "4.3.7"