feat(ui): EVB解凍済みバッジの表示および実効exeによる起動処理に対応
- TkoolGameItem に EVB解凍済みバッジ用の可視性プロパティ(EvbExtractedVisibility)を追加 - ResolveLaunchExecutable にて解凍先ディレクトリからの実効exe解決フォールバックを強化 - MainWindow.xaml に緑色の「解凍済み」バッジを追加し、UI上で状態を一目で確認可能に改善 - MainWindow.xaml.cs の LaunchGameAsync で TkoolGameItem の実効起動exeパスを解決して起動するように修正
This commit is contained in:
1 parent
5433371a77
commit
90584379b7
3 files changed
+33
-6
No files matched your search
+9
-3
@@ -617,10 +617,16 @@ namespace GameLauncher
|
||||
|
||||
private async Task LaunchGameAsync(GameItemBase game)
|
||||
{
|
||||
if (string.IsNullOrEmpty(game.ExecutablePath) || !File.Exists(game.ExecutablePath))
|
||||
// EVB 解凍済みゲームは、保存済みパスが空でも解凍後の exe を解決して起動対象にする。
|
||||
// 実効パス(解決後)で存在判定を行い、非 EVB ゲームの挙動は変えない。
|
||||
var effectiveExe = game is TkoolGameItem tkoolItem
|
||||
? tkoolItem.ResolveLaunchExecutable()
|
||||
: game.ExecutablePath;
|
||||
|
||||
if (string.IsNullOrEmpty(effectiveExe) || !File.Exists(effectiveExe))
|
||||
{
|
||||
MessageBox.Show($"実行ファイルが見つかりません:\n{game.ExecutablePath}", "起動エラー", MessageBoxButton.OK, MessageBoxImage.Warning);
|
||||
AppendLog($"[起動失敗] 実行ファイルが見つかりません: {game.ExecutablePath}");
|
||||
MessageBox.Show($"実行ファイルが見つかりません:\n{effectiveExe}", "起動エラー", MessageBoxButton.OK, MessageBoxImage.Warning);
|
||||
AppendLog($"[起動失敗] 実行ファイルが見つかりません: {effectiveExe}");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user