diff --git a/CameraPlus/CHANGELOG.md b/CameraPlus/CHANGELOG.md index 58c1ccf..d9eef2a 100644 --- a/CameraPlus/CHANGELOG.md +++ b/CameraPlus/CHANGELOG.md @@ -1,4 +1,4 @@ -# v6.0.3 Changes +# v6.0.4 Changes - #18 Fixed omission of setting conversion check. # v6.0.2 Changes diff --git a/CameraPlus/Properties/AssemblyInfo.cs b/CameraPlus/Properties/AssemblyInfo.cs index 9588dc6..42df370 100644 --- a/CameraPlus/Properties/AssemblyInfo.cs +++ b/CameraPlus/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("6.0.3")] -[assembly: AssemblyFileVersion("6.0.3")] +[assembly: AssemblyVersion("6.0.4")] +[assembly: AssemblyFileVersion("6.0.4")] diff --git a/CameraPlus/Utilities/ConfigConverter.cs b/CameraPlus/Utilities/ConfigConverter.cs index 48a55c0..933c042 100644 --- a/CameraPlus/Utilities/ConfigConverter.cs +++ b/CameraPlus/Utilities/ConfigConverter.cs @@ -17,14 +17,14 @@ internal static void ProfileConverter() PreviousConfig previousConfig; CameraConfig cameraConfig; - if (!Directory.Exists(Path.GetDirectoryName(previousPath))) + if (!Directory.Exists(previousPath)) return; - if (!Directory.Exists(Path.GetDirectoryName(profilePath))) - Directory.CreateDirectory(Path.GetDirectoryName(profilePath)); + if (!Directory.Exists(profilePath)) + Directory.CreateDirectory(profilePath); - if (!Directory.Exists(Path.GetDirectoryName(backupPath))) - Directory.CreateDirectory(Path.GetDirectoryName(backupPath)); + if (!Directory.Exists(backupPath)) + Directory.CreateDirectory(backupPath); DirectoryInfo dir = new DirectoryInfo(previousPath); foreach(var dirInfo in dir.GetDirectories()) @@ -54,8 +54,8 @@ internal static void DefaultConfigConverter() DirectoryInfo dirInfo = new DirectoryInfo(Path.Combine(UnityGame.UserDataPath, Plugin.Name)); foreach (FileInfo fi in dirInfo.GetFiles("*.cfg")) { - if (!Directory.Exists(Path.GetDirectoryName(backupPath))) - Directory.CreateDirectory(Path.GetDirectoryName(backupPath)); + if (!Directory.Exists(backupPath)) + Directory.CreateDirectory(backupPath); pc = new PreviousConfig(fi.FullName); cc = PreviousConfigToCameraConfig(pc, diff --git a/CameraPlus/manifest.json b/CameraPlus/manifest.json index 8981aee..4616a76 100644 --- a/CameraPlus/manifest.json +++ b/CameraPlus/manifest.json @@ -3,7 +3,7 @@ "id": "CameraPlus", "name": "CameraPlus", "author": "Various Modders", - "version": "6.0.3", + "version": "6.0.4", "description": "CameraPlus is a Beat Saber mod that allows for multiple wide FOV cameras with smoothed movement.", "gameVersion": "1.16.4", "dependsOn": {