Skip to content

Commit 024f0ef

Browse files
Add TX bgm resume fix and camera centering patch to GUI
1 parent ac47c37 commit 024f0ef

File tree

4 files changed

+68
-23
lines changed

4 files changed

+68
-23
lines changed

SenLib/TX/senpatcher_settings.ini

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ TurboModeFactor=2.0
2525
; Whether turbo mode should require the button being held (false) or act as a toggle (true).
2626
MakeTurboToggle=false
2727

28+
; Whether to disable the vertical centering of the camera when moving.
29+
; This is equivalent to the same feature in the Trails of Cold Steel games, where it is listed
30+
; in the Mouse/Keyboard Controls window of the launcher.
31+
; 'true' to disable the auto-centering
32+
; 'false' to enable the auto-centering (default)
33+
DisableCameraAutoCenter=false
34+
2835
; Whether to disable the game's built-in mouse camera.
2936
; Mouse input will still be accepted for menus regardless of this setting.
3037
; 'true' to disable the mouse mouse camera
@@ -42,6 +49,12 @@ ShowMouseCursor=false
4249
; 'false' to not process controller input (default)
4350
EnableBackgroundControllerInput=false
4451

52+
; Whether to fix the PC-only bug that resumes any music track at the place where it last stopped.
53+
; Enabling this makes the music switching behave like the console and handheld versions instead.
54+
; 'true' to fix the bug (default)
55+
; 'false' to leave it as-is
56+
FixBgmResume=true
57+
4558
; A list of DLC IDs the game should check.
4659
; By default it only checks 170,171,200-203
4760
; We can extend these to all unused IDs to make custom DLCs loadable by the game.

SenLib/Version.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
namespace SenLib {
88
public static class Version {
9-
public static string SenPatcherVersion = "1.2.1";
9+
public static string SenPatcherVersion = "1.2.2";
1010
}
1111
}

SenPatcherGui/TXForm.Designer.cs

Lines changed: 50 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SenPatcherGui/TXForm.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ private void ReadFromIni() {
5656
checkBoxDisableMouseCam.Checked = ini.GetBool("TX", "DisableMouseCamera", false);
5757
checkBoxShowMouseCursor.Checked = ini.GetBool("TX", "ShowMouseCursor", false);
5858
checkBoxEnableBackgroundControllerInput.Checked = ini.GetBool("TX", "EnableBackgroundControllerInput", false);
59+
checkBoxDisableCamAutoCenter.Checked = ini.GetBool("TX", "DisableCameraAutoCenter", false);
60+
checkBoxFixBgmResume.Checked = ini.GetBool("TX", "FixBgmResume", true);
5961
numericUpDownTurboFactor.Value = 2;
6062

6163
double iniFactor = ini.GetDouble("TX", "TurboModeFactor", 2.0);
@@ -81,6 +83,8 @@ private void WriteToIni() {
8183
ini.SetBool("TX", "DisableMouseCamera", checkBoxDisableMouseCam.Checked);
8284
ini.SetBool("TX", "ShowMouseCursor", checkBoxShowMouseCursor.Checked);
8385
ini.SetBool("TX", "EnableBackgroundControllerInput", checkBoxEnableBackgroundControllerInput.Checked);
86+
ini.SetBool("TX", "DisableCameraAutoCenter", checkBoxDisableCamAutoCenter.Checked);
87+
ini.SetBool("TX", "FixBgmResume", checkBoxFixBgmResume.Checked);
8488
ini.WriteToFile(inipath);
8589
} catch (Exception) { }
8690
}

0 commit comments

Comments
 (0)