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
6 years ago
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
IllusionPlugin/ModPrefs.cs
|
|
@@ -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; |
|
|
|