スタイル: コーディング規約に準拠したコードフォーマットの適用(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
@@ -21,22 +21,22 @@ namespace GameLauncher.Engines.Unity
|
||||
/// <summary>[Game]_Data ディレクトリ絶対パス</summary>
|
||||
public string DataDirectoryPath
|
||||
{
|
||||
get => _dataDirectoryPath;
|
||||
set { if (_dataDirectoryPath != value) { _dataDirectoryPath = value; OnPropertyChanged(); } }
|
||||
get => this._dataDirectoryPath;
|
||||
set { if (this._dataDirectoryPath != value) { this._dataDirectoryPath = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
/// <summary>app.info 由来の会社名/開発者名</summary>
|
||||
public string CompanyName
|
||||
{
|
||||
get => _companyName;
|
||||
get => this._companyName;
|
||||
set
|
||||
{
|
||||
if (_companyName != value)
|
||||
if (this._companyName != value)
|
||||
{
|
||||
_companyName = value;
|
||||
OnPropertyChanged();
|
||||
OnPropertyChanged(nameof(RegistryPath));
|
||||
OnPropertyChanged(nameof(LocalLowPath));
|
||||
this._companyName = value;
|
||||
this.OnPropertyChanged();
|
||||
this.OnPropertyChanged(nameof(this.RegistryPath));
|
||||
this.OnPropertyChanged(nameof(this.LocalLowPath));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -44,35 +44,35 @@ namespace GameLauncher.Engines.Unity
|
||||
/// <summary>app.info 由来の製品名</summary>
|
||||
public string ProductName
|
||||
{
|
||||
get => _productName;
|
||||
get => this._productName;
|
||||
set
|
||||
{
|
||||
if (_productName != value)
|
||||
if (this._productName != value)
|
||||
{
|
||||
_productName = value;
|
||||
OnPropertyChanged();
|
||||
OnPropertyChanged(nameof(RegistryPath));
|
||||
OnPropertyChanged(nameof(LocalLowPath));
|
||||
this._productName = value;
|
||||
this.OnPropertyChanged();
|
||||
this.OnPropertyChanged(nameof(this.RegistryPath));
|
||||
this.OnPropertyChanged(nameof(this.LocalLowPath));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override bool IsIL2CPP => BackendType == UnityBackendType.IL2CPP;
|
||||
public override bool IsMono => BackendType == UnityBackendType.Mono;
|
||||
public override bool IsIL2CPP => this.BackendType == UnityBackendType.IL2CPP;
|
||||
public override bool IsMono => this.BackendType == UnityBackendType.Mono;
|
||||
|
||||
/// <summary>バックエンド形式 (IL2CPP / Mono)</summary>
|
||||
public UnityBackendType BackendType
|
||||
{
|
||||
get => _backendType;
|
||||
get => this._backendType;
|
||||
set
|
||||
{
|
||||
if (_backendType != value)
|
||||
if (this._backendType != value)
|
||||
{
|
||||
_backendType = value;
|
||||
OnPropertyChanged();
|
||||
OnPropertyChanged(nameof(BackendBadgeText));
|
||||
OnPropertyChanged(nameof(IsIL2CPP));
|
||||
OnPropertyChanged(nameof(IsMono));
|
||||
this._backendType = value;
|
||||
this.OnPropertyChanged();
|
||||
this.OnPropertyChanged(nameof(this.BackendBadgeText));
|
||||
this.OnPropertyChanged(nameof(this.IsIL2CPP));
|
||||
this.OnPropertyChanged(nameof(this.IsMono));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -80,15 +80,15 @@ namespace GameLauncher.Engines.Unity
|
||||
/// <summary>Unityバージョン文字列</summary>
|
||||
public override string UnityVersion
|
||||
{
|
||||
get => _unityVersion;
|
||||
set { if (_unityVersion != value) { _unityVersion = value; OnPropertyChanged(); } }
|
||||
get => this._unityVersion;
|
||||
set { if (this._unityVersion != value) { this._unityVersion = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
/// <summary>セーブデータ(レジストリまたはファイル)が検出されたかどうか</summary>
|
||||
public override bool HasSaveData
|
||||
{
|
||||
get => _hasSaveData;
|
||||
set { if (_hasSaveData != value) { _hasSaveData = value; OnPropertyChanged(); } }
|
||||
get => this._hasSaveData;
|
||||
set { if (this._hasSaveData != value) { this._hasSaveData = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -99,9 +99,9 @@ namespace GameLauncher.Engines.Unity
|
||||
{
|
||||
get
|
||||
{
|
||||
if (string.IsNullOrEmpty(CompanyName) || string.IsNullOrEmpty(ProductName))
|
||||
if (string.IsNullOrEmpty(this.CompanyName) || string.IsNullOrEmpty(this.ProductName))
|
||||
return string.Empty;
|
||||
return $@"Software\{CompanyName}\{ProductName}";
|
||||
return $@"Software\{this.CompanyName}\{this.ProductName}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -113,18 +113,18 @@ namespace GameLauncher.Engines.Unity
|
||||
{
|
||||
get
|
||||
{
|
||||
if (string.IsNullOrEmpty(CompanyName) || string.IsNullOrEmpty(ProductName))
|
||||
if (string.IsNullOrEmpty(this.CompanyName) || string.IsNullOrEmpty(this.ProductName))
|
||||
return string.Empty;
|
||||
|
||||
var localAppData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
|
||||
var appData = Path.GetDirectoryName(localAppData);
|
||||
if (string.IsNullOrEmpty(appData)) return string.Empty;
|
||||
|
||||
return Path.Combine(appData, "LocalLow", CompanyName, ProductName);
|
||||
return Path.Combine(appData, "LocalLow", this.CompanyName, this.ProductName);
|
||||
}
|
||||
}
|
||||
|
||||
public override string BackendBadgeText => BackendType switch
|
||||
public override string BackendBadgeText => this.BackendType switch
|
||||
{
|
||||
UnityBackendType.IL2CPP => "IL2CPP",
|
||||
UnityBackendType.Mono => "Mono",
|
||||
|
||||
Reference in new issue
Block a user