diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..55c8c20 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,28 @@ +root = true + +[*] +charset = utf-8-bom +end_of_line = crlf +indent_style = space +indent_size = 4 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.cs] +# this. の明示 +dotnet_style_qualification_for_field = true:suggestion +dotnet_style_qualification_for_property = true:suggestion +dotnet_style_qualification_for_method = true:suggestion +dotnet_style_qualification_for_event = true:suggestion + +# 改行・波括弧スタイル +csharp_new_line_before_open_brace = all +csharp_new_line_before_else = true +csharp_new_line_before_catch = true +csharp_new_line_before_finally = true + +# 空白スタイル +csharp_space_after_cast = false +csharp_space_after_keywords_in_control_flow_statements = true +csharp_space_between_method_call_parameter_list_parentheses = false +csharp_space_between_method_declaration_parameter_list_parentheses = false diff --git a/.gitignore b/.gitignore index a6793de..5c5671c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -## Visual Studio 2026 / .NET .gitignore +## Visual Studio 2026 / .NET .gitignore [Bb]in/ [Oo]bj/ [Ll]og/ diff --git a/AGENTS.md b/AGENTS.md index 2a3609a..1784604 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,4 +1,4 @@ -# AGENTS.md — GameLauncher エージェント規則 +# AGENTS.md — GameLauncher エージェント規則 このファイルは **GameLauncher プロジェクトの AI エージェント向け規則** である。 本プロジェクトでのすべての変更(コード追加・修正・削除・発行)は、必ず以下の規則に従って実施すること。 diff --git a/AddKeyDialog.xaml b/AddKeyDialog.xaml index fbfdab9..7a9d4be 100644 --- a/AddKeyDialog.xaml +++ b/AddKeyDialog.xaml @@ -1,4 +1,4 @@ - - + diff --git a/App.xaml.cs b/App.xaml.cs index 2284df1..b1630c5 100644 --- a/App.xaml.cs +++ b/App.xaml.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.IO; using System.Windows; using GameLauncher.Helpers; @@ -25,7 +25,7 @@ namespace GameLauncher { var ex = args.Exception; LogError("DispatcherUnhandledException", ex); - MessageBox.Show($"アプリケーションエラーが発生しました:\n\n{ex.Message}\n\n詳細:\n{ex}", + MessageBox.Show($"アプリケーションエラーが発生しました:\n\n{ex.Message}\n\n詳細:\n{ex}", "GameLauncher エラー", MessageBoxButton.OK, MessageBoxImage.Error); args.Handled = true; }; @@ -35,7 +35,7 @@ namespace GameLauncher if (args.ExceptionObject is Exception ex) { LogError("AppDomain.UnhandledException", ex); - MessageBox.Show($"致命的なエラーが発生しました:\n\n{ex.Message}\n\n詳細:\n{ex}", + MessageBox.Show($"致命的なエラーが発生しました:\n\n{ex.Message}\n\n詳細:\n{ex}", "GameLauncher 致命的エラー", MessageBoxButton.OK, MessageBoxImage.Error); } }; diff --git a/Config.tjs b/Config.tjs index 0922815..187233d 100644 --- a/Config.tjs +++ b/Config.tjs @@ -1,4 +1,4 @@ -//ティラノビルダーによる自動ビルド  +//ティラノビルダーによる自動ビルド ;debugMenu.visible=false ;configSave=file ;global.config_version=5.00 diff --git a/ConfigDialog.xaml b/ConfigDialog.xaml index 7e7eceb..97b8924 100644 --- a/ConfigDialog.xaml +++ b/ConfigDialog.xaml @@ -1,7 +1,7 @@ - - @@ -86,7 +86,7 @@ - -