Skip to content
This repository has been archived by the owner on Feb 15, 2025. It is now read-only.

Commit

Permalink
fix first time running not have the keybind
Browse files Browse the repository at this point in the history
  • Loading branch information
LingFeng-bbben committed Mar 23, 2023
1 parent d024585 commit 99c4c77
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
13 changes: 0 additions & 13 deletions MainWindowCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -431,20 +431,8 @@ private void CreateNewFumen(string path)
void CreateEditorSetting()
{
editorSetting = new EditorSetting();
editorSetting.Language = "en-US"; // 在未初始化EditorSetting的时候 以较为通用的英文运行
editorSetting.RenderMode = RenderOptions.ProcessRenderMode == RenderMode.SoftwareOnly ? 1 : 0; // 使用命令行指定强制软件渲染时,同步修改配置值

editorSetting.DefaultSlideAccuracy = 0.2f; // 大家都要做能pass 200ms撞尾检测的好孩子喔
// 设置默认音量
editorSetting.Default_BGM_Level = 0.85f;
editorSetting.Default_Answer_Level = 0.95f;
editorSetting.Default_Judge_Level = 0.5f;
editorSetting.Default_Slide_Level = 0.35f;
editorSetting.Default_Break_Level = 0.55f;
editorSetting.Default_Ex_Level = 0.4f;
editorSetting.Default_Touch_Level = 0.5f;
editorSetting.Default_Hanabi_Level = 0.4f;

File.WriteAllText(editorSettingFilename, JsonConvert.SerializeObject(editorSetting, Formatting.Indented));

EditorSettingPanel esp = new EditorSettingPanel(true);
Expand All @@ -456,7 +444,6 @@ void ReadEditorSetting()
if (!File.Exists(editorSettingFilename))
{
CreateEditorSetting();
return;
}
var json = File.ReadAllText(editorSettingFilename);
editorSetting = JsonConvert.DeserializeObject<EditorSetting>(json);
Expand Down
2 changes: 1 addition & 1 deletion Majson.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class EditorSetting
public bool AutoCheckUpdate = true;
public int ChartRefreshDelay = 1000;
public float DefaultSlideAccuracy = 0.2f;
public string Language = "zh-CN";
public string Language = "en-US";
public string PlayPauseKey = "Ctrl+Shift+c";
public string PlayStopKey = "Ctrl+Shift+x";
public string SendViewerKey = "Ctrl+Shift+z";
Expand Down

0 comments on commit 99c4c77

Please sign in to comment.