Skip to content

Commit d5851a9

Browse files
create setting folder function
1 parent 76afd9e commit d5851a9

File tree

2 files changed

+39
-13
lines changed

2 files changed

+39
-13
lines changed

src/HyperMC/Data/Settings.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
using System;
3+
using System.IO;
4+
5+
namespace HyperMcSettings
6+
{
7+
public class manager
8+
{
9+
string path = $"{Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)}\\.hypermc\\settings";
10+
11+
public void createSettingsFolder(string SettingFileName)
12+
{
13+
string setting_file_path = $"{path}\\{SettingFileName}";
14+
if(!Directory.Exists(setting_file_path))
15+
{
16+
Directory.CreateDirectory(setting_file_path);
17+
}
18+
}
19+
public void addSetting(string settingName, string settingValue)
20+
{
21+
22+
}
23+
}
24+
}

src/HyperMC/HyperMcView.Designer.cs

Lines changed: 15 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)