スタイル: コーディング規約に準拠したコードフォーマットの適用(this.の明示、空白スタイルの統一)

- 自インスタンスメンバーアクセスへの this. 付与(28ファイル)
- .editorconfig に準拠したインデント・波括弧・空白スタイルの適用
- UTF-8 (BOMあり)、CRLF改行コード、行末空白除去の整合性検証
This commit is contained in:
armonica committed 2026-10-20 10:14:26 +09:00
1 parent 2fa40c950f
commit ae86b53147
28 files changed
+1362 -1380

No files matched your search

+1 -1
View File
@@ -85,7 +85,7 @@ namespace GameLauncher.Engines.Wolf
return (false, "ゲームのルートディレクトリが見つかりません。");
}
var extractorPath = ResolveExtractorPath(customExtractorPath);
var extractorPath = this.ResolveExtractorPath(customExtractorPath);
if (string.IsNullOrEmpty(extractorPath) || !File.Exists(extractorPath))
{
return (false, "Wolf RPG アーカイブ解凍ツール(UberWolfCli.exe / WolfDec.exe)が見つかりません。設定ダイアログからツールのパスを指定してください。");
+3 -3
View File
@@ -51,7 +51,7 @@ namespace GameLauncher.Engines.Wolf
try
{
// 1. プロキシDLL本体の探索 (Tools\speedhack-i686\version.dll)
var sourceDllPath = ResolveProxyDllPath();
var sourceDllPath = this.ResolveProxyDllPath();
if (string.IsNullOrEmpty(sourceDllPath) || !File.Exists(sourceDllPath))
{
return (false, "プロキシDLL(Engines\\Wolf\\Tools\\speedhack-i686\\version.dll)が見つかりません。");
@@ -73,7 +73,7 @@ namespace GameLauncher.Engines.Wolf
File.Copy(sourceDllPath, targetDllPath, overwrite: true);
// 4. speedhack_config.json の生成・書き込み
var configContent = GenerateSpeedhackConfig(baseSpeed, toggleSpeed, holdSpeed);
var configContent = this.GenerateSpeedhackConfig(baseSpeed, toggleSpeed, holdSpeed);
File.WriteAllText(targetConfigPath, configContent, new UTF8Encoding(false));
game.WolfProxyDll = true;
@@ -138,7 +138,7 @@ namespace GameLauncher.Engines.Wolf
var sb = new StringBuilder();
// 1. プロキシDLLの解除
var (dllSuccess, dllMsg) = RemoveProxyDll(game);
var (dllSuccess, dllMsg) = this.RemoveProxyDll(game);
sb.AppendLine(dllMsg);
// 2. Game.exe バックアップからの復元(存在する場合)
+6 -6
View File
@@ -108,7 +108,7 @@ namespace GameLauncher.Engines.Wolf
catch { }
}
return result.Distinct(StringComparer.OrdinalIgnoreCase).ToList();
return [.. result.Distinct(StringComparer.OrdinalIgnoreCase)];
}
/// <summary>
@@ -186,7 +186,7 @@ namespace GameLauncher.Engines.Wolf
throw new FileNotFoundException($"セーブデータファイルが見つかりません: {filePath}");
byte[] rawBytes = File.ReadAllBytes(filePath);
byte[] decrypted = Decrypt(rawBytes);
byte[] decrypted = this.Decrypt(rawBytes);
var result = new WolfSaveData
{
@@ -217,10 +217,10 @@ namespace GameLauncher.Engines.Wolf
}
// セーブデータ内の全文字列スキャン
ScanStrings(result, decrypted, enc);
this.ScanStrings(result, decrypted, enc);
// セーブデータ内の通常変数スキャン
ScanVariables(result, decrypted);
this.ScanVariables(result, decrypted);
return result;
}
@@ -293,7 +293,7 @@ namespace GameLauncher.Engines.Wolf
throw new InvalidOperationException("保存対象のデータが空です。");
// 1. バックアップ作成 (Backups フォルダへ)
string? backupPath = BackupSaveFile(model.FilePath, folderName, rootDirectory);
string? backupPath = this.BackupSaveFile(model.FilePath, folderName, rootDirectory);
// 2. 変数・項目の変更を RawDecryptedBytes に書き戻し
foreach (var item in model.Variables)
@@ -306,7 +306,7 @@ namespace GameLauncher.Engines.Wolf
}
// 3. 暗号化 & チェックサム再計算
byte[] encrypted = Encrypt(model.RawDecryptedBytes);
byte[] encrypted = this.Encrypt(model.RawDecryptedBytes);
// 4. アトミック書き込み
string tempFile = model.FilePath + ".tmp_" + Guid.NewGuid().ToString("N");