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

+26 -1
View File
@@ -692,6 +692,24 @@ namespace GameLauncher.Services
onGameUpdated(tg);
}
}
else if (tg.IsNwjs)
{
if (!File.Exists(tg.ExecutablePath) && !File.Exists(Path.Combine(tg.RootDirectory, "package.json")))
{
onGameRemoved(tg);
cacheNeedsSave = true;
continue;
}
}
else if (tg.IsEvbPacked || tg.IsStandaloneExePackage)
{
if (!File.Exists(tg.ExecutablePath))
{
onGameRemoved(tg);
cacheNeedsSave = true;
continue;
}
}
else
{
if (!File.Exists(tg.PluginsJsPath))
@@ -715,7 +733,7 @@ namespace GameLauncher.Services
}
// 改造状態の確認
if (tg.IsWolf)
if (tg.IsWolf || tg.IsNwjs)
{
tg.IsModded = false;
}
@@ -1138,6 +1156,13 @@ namespace GameLauncher.Services
{
return rgssGame;
}
// 8. 汎用 NW.js ゲームの検出
var nwjsGame = Engines.Nwjs.NwjsDetector.DetectNwjsGame(dirPath, folderName, folderModified, (exe, dir) => LoadIcon(exe, dir));
if (nwjsGame != null)
{
return nwjsGame;
}
}
catch { }