スタイル: コーディング規約に準拠したコードフォーマットの適用(this.の明示、空白スタイルの統一)
- 自インスタンスメンバーアクセスへの this. 付与(28ファイル) - .editorconfig に準拠したインデント・波括弧・空白スタイルの適用 - UTF-8 (BOMあり)、CRLF改行コード、行末空白除去の整合性検証
This commit is contained in:
1 parent
2fa40c950f
commit
ae86b53147
28 files changed
+1362
-1380
No files matched your search
@@ -81,7 +81,7 @@ namespace GameLauncher.Engines.Unity
|
||||
catch { }
|
||||
|
||||
// キー名昇順でソート
|
||||
return list.OrderBy(e => e.CleanKey, StringComparer.OrdinalIgnoreCase).ToList();
|
||||
return [.. list.OrderBy(e => e.CleanKey, StringComparer.OrdinalIgnoreCase)];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -319,7 +319,7 @@ namespace GameLauncher.Engines.Unity
|
||||
proc?.WaitForExit(3000);
|
||||
|
||||
// JSONバックアップも併せて出力
|
||||
var entries = GetPlayerPrefs(registryPath);
|
||||
var entries = this.GetPlayerPrefs(registryPath);
|
||||
var jsonBackupFile = Path.Combine(backupDir, $"PlayerPrefs_{timestamp}.json");
|
||||
var serializableList = entries.Select(e => new
|
||||
{
|
||||
@@ -416,7 +416,7 @@ namespace GameLauncher.Engines.Unity
|
||||
FileSize = fi.Length,
|
||||
LastModified = fi.LastWriteTime,
|
||||
LocationType = "LocalLow",
|
||||
IsTextOrJson = CheckIsTextOrJson(f)
|
||||
IsTextOrJson = this.CheckIsTextOrJson(f)
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -429,7 +429,7 @@ namespace GameLauncher.Engines.Unity
|
||||
try
|
||||
{
|
||||
// ルート直下
|
||||
CollectCandidateFiles(game.RootDirectory, "ゲームフォルダ", list);
|
||||
this.CollectCandidateFiles(game.RootDirectory, "ゲームフォルダ", list);
|
||||
|
||||
// Save / SaveData / saves / savedata サブフォルダ
|
||||
var subNames = new[] { "Save", "SaveData", "saves", "savedata", "Save_Data" };
|
||||
@@ -438,21 +438,21 @@ namespace GameLauncher.Engines.Unity
|
||||
var subPath = Path.Combine(game.RootDirectory, sub);
|
||||
if (Directory.Exists(subPath))
|
||||
{
|
||||
CollectCandidateFiles(subPath, "ゲームフォルダ/" + sub, list, isStrict: false);
|
||||
this.CollectCandidateFiles(subPath, "ゲームフォルダ/" + sub, list, isStrict: false);
|
||||
}
|
||||
}
|
||||
|
||||
// Dataフォルダ直下のセーブファイル候補
|
||||
if (!string.IsNullOrEmpty(game.DataDirectoryPath) && Directory.Exists(game.DataDirectoryPath))
|
||||
{
|
||||
CollectCandidateFiles(game.DataDirectoryPath, "Dataフォルダ", list);
|
||||
this.CollectCandidateFiles(game.DataDirectoryPath, "Dataフォルダ", list);
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
|
||||
// 更新日時降順でソート
|
||||
return list.OrderByDescending(f => f.LastModified).ToList();
|
||||
return [.. list.OrderByDescending(f => f.LastModified)];
|
||||
}
|
||||
|
||||
private void CollectCandidateFiles(string dir, string locationLabel, List<SaveFileEntry> list, bool isStrict = true)
|
||||
@@ -494,7 +494,7 @@ namespace GameLauncher.Engines.Unity
|
||||
FileSize = fi.Length,
|
||||
LastModified = fi.LastWriteTime,
|
||||
LocationType = locationLabel,
|
||||
IsTextOrJson = CheckIsTextOrJson(f)
|
||||
IsTextOrJson = this.CheckIsTextOrJson(f)
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -649,7 +649,7 @@ namespace GameLauncher.Engines.Unity
|
||||
}
|
||||
catch { }
|
||||
|
||||
return list.OrderByDescending(b => b.Timestamp).ToList();
|
||||
return [.. list.OrderByDescending(b => b.Timestamp)];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in new issue
Block a user