Skip to content

Commit

Permalink
KKP fixed minor errors in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrewThisNoise committed Aug 12, 2020
1 parent 111b96b commit bdedb6e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/Koikatsu Party/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,16 @@ private void KoikatsuStartup()
Path.Combine(EnvironmentHelper.GameRootDirectory, @"BepInEx\patchers\KK_SFW_Patcher.dll")))
Toggleables.Children.Remove(toggleSFW);

if (File.Exists(Path.Combine(EnvironmentHelper.GameRootDirectory, @"abdata\localize\translate\1\ui\00\config.unity3d")) && File.Exists(Path.Combine(EnvironmentHelper.GameRootDirectory, @"abdata\localize\translate\1\ui\00\config.disabled")))
File.Delete(EnvironmentHelper.GameRootDirectory + @"abdata\localize\translate\1\ui\00\config.unity3d");
bool PartyFixExists = File.Exists(EnvironmentHelper.GameRootDirectory + @"BepInEx\plugins\2155X\KK_FixPartySettings.dll");
bool PartyFixConfig = File.Exists(EnvironmentHelper.GameRootDirectory + @"abdata\localize\translate\1\ui\00\config.unity3d");
bool PartyFixConfigDis = File.Exists(EnvironmentHelper.GameRootDirectory + @"abdata\localize\translate\1\ui\00\config.disabled");

if (File.Exists(Path.Combine(EnvironmentHelper.GameRootDirectory, @"abdata\localize\translate\1\ui\00\config.unity3d")))
File.Move(EnvironmentHelper.GameRootDirectory + @"abdata\localize\translate\1\ui\00\config.unity3d", EnvironmentHelper.GameRootDirectory + @"abdata\localize\translate\1\ui\00\config.unity3d.disabled");
if (PartyFixConfig && PartyFixConfigDis)
File.Delete(EnvironmentHelper.GameRootDirectory + @"abdata\localize\translate\1\ui\00\config.unity3d.disabled");

if (PartyFixConfig && PartyFixExists)
File.Move(EnvironmentHelper.GameRootDirectory + @"abdata\localize\translate\1\ui\00\config.unity3d",
EnvironmentHelper.GameRootDirectory + @"abdata\localize\translate\1\ui\00\config.unity3d.disabled");
}

#endregion
Expand Down

0 comments on commit bdedb6e

Please sign in to comment.