feat(nwjs): NW.js汎用ゲームの自動検出・専用タブおよびバッジ表示機能を追加

- package.jsonを起点とする汎用NW.jsゲームの検出ロジック(NwjsDetector)を新規実装
- メインナビゲーションタブに「NW.js」タブを追加し、エンジン別フィルタリングに対応
- 一覧カードおよび詳細パネルヘッダーにNW.jsバッジを追加
- キャッシュ復元およびステータスバー集計にNW.jsエンジン分類を反映
This commit is contained in:
armonica committed 2026-10-09 10:36:57 +09:00
1 parent 90584379b7
commit 59519208f3
8 files changed
+433 -11

No files matched your search

+13 -4
View File
@@ -137,6 +137,7 @@ namespace GameLauncher
case 6: tabUnity.IsChecked = true; break;
case 7: tabWolf.IsChecked = true; break;
case 8: tabSrpg.IsChecked = true; break;
case 9: tabNwjs.IsChecked = true; break;
default: tabAll.IsChecked = true; break;
}
@@ -173,6 +174,7 @@ namespace GameLauncher
else if (tabUnity.IsChecked == true) tabIndex = 6;
else if (tabWolf.IsChecked == true) tabIndex = 7;
else if (tabSrpg.IsChecked == true) tabIndex = 8;
else if (tabNwjs.IsChecked == true) tabIndex = 9;
_config.SelectedTab = tabIndex;
_config.UnityBackendFilter = rbUnityIL2CPP.IsChecked == true ? "IL2CPP" : (rbUnityMono.IsChecked == true ? "Mono" : "All");
@@ -281,13 +283,15 @@ namespace GameLauncher
if (_games.Count > 0)
{
int tkoolCount = _games.Count(g => g is TkoolGameItem tg && tg.EngineType != TkoolEngineType.Tyrano && !tg.IsRgss && !tg.IsWolf);
int tkoolCount = _games.Count(g => g is TkoolGameItem tg && tg.EngineType != TkoolEngineType.Tyrano && !tg.IsRgss && !tg.IsWolf && !tg.IsSrpgStudio && !tg.IsNwjs);
int rgssCount = _games.Count(g => g is TkoolGameItem tg && tg.IsRgss);
int tyranoCount = _games.Count(g => g is TkoolGameItem tg && tg.EngineType == TkoolEngineType.Tyrano);
int wolfCount = _games.Count(g => g is TkoolGameItem tg && tg.IsWolf);
int srpgCount = _games.Count(g => g is TkoolGameItem tg && tg.IsSrpgStudio);
int nwjsCount = _games.Count(g => g is TkoolGameItem tg && tg.IsNwjs);
int unityCount = _games.Count(g => g is UnityGameItem);
AppendLog($"キャッシュから計 {_games.Count} 件(ツクールMV/MZ: {tkoolCount}, ツクールVX系: {rgssCount}, ティラノ: {tyranoCount}, ウディタ: {wolfCount}, Unity: {unityCount})を即時表示しました。(待たずに即起動可能です)");
AppendLog($"キャッシュから計 {_games.Count} 件(ツクールMV/MZ: {tkoolCount}, ツクールVX系: {rgssCount}, ティラノ: {tyranoCount}, ウディタ: {wolfCount}, SRPG Studio: {srpgCount}, NW.js: {nwjsCount}, Unity: {unityCount})を即時表示しました。(待たずに即起動可能です)");
lblStatusEngine.Text = "裏で更新・実在検証を実行中...";
}
else
@@ -472,6 +476,10 @@ namespace GameLauncher
if (rbUnityIL2CPP.IsChecked == true && ug.BackendType != UnityBackendType.IL2CPP) return false;
if (rbUnityMono.IsChecked == true && ug.BackendType != UnityBackendType.Mono) return false;
}
else if (tabNwjs.IsChecked == true)
{
if (game is not TkoolGameItem tg || tg.EngineType != TkoolEngineType.Nwjs) return false;
}
// 3. 追加属性フィルター(全タブ共通)
if (chkFilterModdedOnly.IsChecked == true && !game.IsModded) return false;
@@ -536,15 +544,16 @@ namespace GameLauncher
int total = _games.Count;
int visible = _gamesView?.Count ?? 0;
int tkoolCount = _games.Count(g => g is TkoolGameItem tg && tg.EngineType != TkoolEngineType.Tyrano && !tg.IsRgss && !tg.IsWolf && !tg.IsSrpgStudio);
int tkoolCount = _games.Count(g => g is TkoolGameItem tg && tg.EngineType != TkoolEngineType.Tyrano && !tg.IsRgss && !tg.IsWolf && !tg.IsSrpgStudio && !tg.IsNwjs);
int rgssCount = _games.Count(g => g is TkoolGameItem tg && tg.IsRgss);
int tyranoCount = _games.Count(g => g is TkoolGameItem tg && tg.EngineType == TkoolEngineType.Tyrano);
int wolfCount = _games.Count(g => g is TkoolGameItem tg && tg.IsWolf);
int srpgCount = _games.Count(g => g is TkoolGameItem tg && tg.IsSrpgStudio);
int nwjsCount = _games.Count(g => g is TkoolGameItem tg && tg.IsNwjs);
int unityCount = _games.Count(g => g is UnityGameItem);
lblStatusSummary.Text = $"総ゲーム数: {total} 件 | 表示: {visible} 件";
lblStatusBreakdown.Text = $"(ツクールMV/MZ: {tkoolCount}, ツクールVX系: {rgssCount}, ティラノ: {tyranoCount}, ウディタ: {wolfCount}, SRPG Studio: {srpgCount}, Unity: {unityCount})";
lblStatusBreakdown.Text = $"(ツクールMV/MZ: {tkoolCount}, ツクールVX系: {rgssCount}, ティラノ: {tyranoCount}, ウディタ: {wolfCount}, SRPG Studio: {srpgCount}, NW.js: {nwjsCount}, Unity: {unityCount})";
}
#endregion