-
Notifications
You must be signed in to change notification settings - Fork 0
/
ModConfiguration.cs
153 lines (133 loc) · 5.15 KB
/
ModConfiguration.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
using BepInEx.Configuration;
namespace FFPR_Fix;
public sealed class ModConfiguration
{
private ConfigFile _config;
public ConfigEntry<bool> UncapFPS;
public ConfigEntry<bool> EnableVsync;
public ConfigEntry<bool> HideFieldMinimap;
public ConfigEntry<bool> HideWorldMinimap;
public ConfigEntry<bool> SkipSplashscreens;
public ConfigEntry<bool> SkipPressAnyKey;
public ConfigEntry<float> PlayerWalkspeed;
public ConfigEntry<float> OutBattleSpeedHackFactor;
public ConfigEntry<float> BattleSpeedHackFactor;
public ConfigEntry<float> ChocoboTurnFactor;
public ConfigEntry<float> AirshipTurnFactor;
public ConfigEntry<bool> BattleWaitPlayerCommand;
public ConfigEntry<float> BattleATBSpeed;
public ConfigEntry<bool> RunOnWorldMap;
public ConfigEntry<bool> DisableDiagonalMovements;
public ConfigEntry<bool> BackupSaveFiles;
public ConfigEntry<bool> UseDecryptedSaveFiles;
public ModConfiguration(ConfigFile config)
{
_config = config;
}
public void Init()
{
UncapFPS = _config.Bind(
"Framerate",
"Uncap",
false,
"Remove the 60 FPS limit. Use with SpecialK or Rivatuner to cap it to the intended FPS for best frame pacing."
);
EnableVsync = _config.Bind(
"Framerate",
"Vsync",
false,
"Enable VSync. The framerate will match your monitor refresh rate."
);
HideFieldMinimap = _config.Bind(
"UI",
"HideFieldMinimap",
false,
"Hide the field minimap."
);
HideWorldMinimap = _config.Bind(
"UI",
"HideWorldMinimap",
false,
"Hide the world minimap."
);
SkipSplashscreens = _config.Bind(
"Skip intro",
"SkipSplashscreens",
true,
"Skip the intro splashscreens."
);
SkipPressAnyKey = _config.Bind(
"Skip intro",
"SkipPressAnyKey",
false,
"Skip the intro movie and the \"Press any key\" before the title screen."
);
OutBattleSpeedHackFactor = _config.Bind(
"Hack",
"OutBattleSpeedHackFactor",
1f,
"Increase or decrease the game speed by X out-of-battle when T or PageUp (LT/L2 by default) is pressed."
);
BattleSpeedHackFactor = _config.Bind(
"Hack",
"BattleSpeedHackFactor",
1f,
"Increase or decrease the game speed by X in battle when T or PageUp (LT/L2 by default) is pressed."
);
BattleWaitPlayerCommand = _config.Bind(
"Battle",
"WaitPlayerCommand",
false,
"Pause the battle when it's your turn. You can resume until the next unit is ready by pressing P or Select. (FF4,5 and 6 only)"
);
BattleATBSpeed = _config.Bind(
"Battle",
"ATBSpeed",
1f,
"Change the rate at which the ATB gauge fills. Best used with WaitPlayerCommand for a Turn based experience. (FF4,5 and 6 only)"
);
ChocoboTurnFactor = _config.Bind(
"Camera",
"ChocoboTurnFactor",
1f,
"Increase or decrease the camera turn speed when on a chocobo by X. (FF3,5 and 6 only)"
);
AirshipTurnFactor = _config.Bind(
"Camera",
"AirshipTurnFactor",
1f,
"Increase or decrease the camera turn speed when on an airship by X."
);
PlayerWalkspeed = _config.Bind(
"Movement",
"PlayerWalkspeed",
1f,
"Change the player movement speed on the field (SNES is 0.75). Set to 0.75 and enable DisableDiagonalMovements to avoid stutters at 60fps."
);
RunOnWorldMap = _config.Bind(
"Movement",
"RunOnWorldMap",
false,
"Allow the player to run when on the world map."
);
DisableDiagonalMovements = _config.Bind(
"Movement",
"DisableDiagonalMovements",
false,
"Restrict the movements to 4 directions instead of 8, like on the SNES."
);
BackupSaveFiles = _config.Bind(
"Save",
"BackupSaveFiles",
false,
"Make a backup of the existing save when the game is saved. Saves are located in \"%USERPROFILE%\\Documents\\My Games\\FINAL FANTASY [GAME_VERSION] PR\\Steam\\[YOUR_ID]\"." +
" Backups have the .bak extension. Useful to recover from corrupted save files."
);
UseDecryptedSaveFiles = _config.Bind(
"Save",
"UseDecryptedSaveFiles",
false,
"USE AT YOUR OWN RISKS. BACKUP YOUR SAVES FIRST. The game won't encrypt the save files which will be in json format. It will only work with new saves."
);
}
}