Skip to content

Commit 8043e6f

Browse files
committed
Add option to disable PCP.
1 parent e3b7f72 commit 8043e6f

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

Penumbra/Configuration.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public bool EnableMods
6868
public bool HideMachinistOffhandFromChangedItems { get; set; } = true;
6969
public bool DefaultTemporaryMode { get; set; } = false;
7070
public bool EnableCustomShapes { get; set; } = true;
71+
public bool DisablePcpHandling { get; set; } = false;
7172
public RenameField ShowRename { get; set; } = RenameField.BothDataPrio;
7273
public ChangedItemMode ChangedItemDisplay { get; set; } = ChangedItemMode.GroupedCollapsed;
7374
public int OptionGroupCollapsibleMin { get; set; } = 5;

Penumbra/Services/PcpService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public PcpService(Configuration config,
7171

7272
private void OnModPathChange(ModPathChangeType type, Mod mod, DirectoryInfo? oldDirectory, DirectoryInfo? newDirectory)
7373
{
74-
if (type is not ModPathChangeType.Added || newDirectory is null)
74+
if (type is not ModPathChangeType.Added || _config.DisablePcpHandling || newDirectory is null)
7575
return;
7676

7777
try

Penumbra/UI/Tabs/SettingsTab.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,9 @@ private void DrawModHandlingSettings()
598598
Checkbox("Always Open Import at Default Directory",
599599
"Open the import window at the location specified here every time, forgetting your previous path.",
600600
_config.AlwaysOpenDefaultImport, v => _config.AlwaysOpenDefaultImport = v);
601+
Checkbox("Handle PCP Files",
602+
"When encountering specific mods, usually but not necessarily denoted by a .pcp file ending, Penumbra will automatically try to create an associated collection and assign it to a specific character for this mod package. This can turn this behaviour off if unwanted.",
603+
!_config.DisablePcpHandling, v => _config.DisablePcpHandling = !v);
601604
DrawDefaultModImportPath();
602605
DrawDefaultModAuthor();
603606
DrawDefaultModImportFolder();

0 commit comments

Comments
 (0)