Skip to content

Commit

Permalink
- #18 Fixed omission of setting conversion check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Snow1226 committed Aug 18, 2021
1 parent 3b1036f commit 612dc35
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CameraPlus/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# v6.0.3 Changes
# v6.0.4 Changes
- #18 Fixed omission of setting conversion check.

# v6.0.2 Changes
Expand Down
4 changes: 2 additions & 2 deletions CameraPlus/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
14 changes: 7 additions & 7 deletions CameraPlus/Utilities/ConfigConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion CameraPlus/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 612dc35

Please sign in to comment.