Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Commit

Permalink
fix blank file generation... again.....
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiokuu committed Mar 25, 2021
1 parent 40b8709 commit 2d3c63c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
6 changes: 3 additions & 3 deletions SafetyPresets/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using MelonLoader;

// MelonLoader
[assembly: MelonInfo(typeof(SafetyPresets.Main), "Safety-Presets", "0.0.3", "死神#6938", "https://github.com/Kiokuu/SafetyPresets")]
[assembly: MelonInfo(typeof(SafetyPresets.Main), "Safety-Presets", "0.0.4", "死神#6938", "https://github.com/Kiokuu/SafetyPresets")]
[assembly: MelonGame("VRChat", "VRChat")]

// General Information about an assembly is controlled through the following
Expand Down Expand Up @@ -37,5 +37,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("1.0.0.3")]
[assembly: AssemblyFileVersion("1.0.0.3")]
[assembly: AssemblyVersion("1.0.0.4")]
[assembly: AssemblyFileVersion("1.0.0.4")]
10 changes: 1 addition & 9 deletions SafetyPresets/SafetySettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,9 @@ public static void SetupDefaults()
Directory.CreateDirectory("UserData");
}

if (!File.Exists($"UserData\\{Prefs.UserDataFileName}"))
{
File.Create($"UserData\\{Prefs.UserDataFileName}");
}

// Try loading available presets, if failed, generate blank presets

try
{
availablePresets = JsonConvert.DeserializeObject<Classes.Presets>(File.ReadAllText($"UserData\\{Prefs.UserDataFileName}"));

availablePresets = JsonConvert.DeserializeObject<Classes.Presets>(File.ReadAllText($"UserData\\{Prefs.UserDataFileName}"));
}
catch
{
Expand Down

0 comments on commit 2d3c63c

Please sign in to comment.