Browse Source

Create Default Folder to save ini to

If the /UserData/ folder doesn't exist, the methods of this file fails to work. Creating the folder before hand prevents this issue.
pull/7/head
AkiTensai GitHub 5 years ago
parent
commit
d6456108be
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      IllusionPlugin/ModPrefs.cs

+ 1
- 0
IllusionPlugin/ModPrefs.cs View File

@@ -17,6 +17,7 @@ namespace IllusionPlugin
{
if (_instance == null)
{
System.IO.Directory.CreateDirectory(System.IO.Path.Combine(Environment.CurrentDirectory, "UserData/"));
_instance = new IniFile(Path.Combine(Environment.CurrentDirectory, "UserData/modprefs.ini"));
}
return _instance;


Loading…
Cancel
Save