chore: 右パネルの不要なウディタデバッグUI(効果のないチェック項目)と関連する死にコードを削除

This commit is contained in:
armonica committed 2026-10-06 01:23:15 +09:00
1 parent 01ee04b4cc
commit 6cea9fa91b
5 files changed
+2 -55

No files matched your search

+2 -16
View File
@@ -1086,21 +1086,7 @@
</StackPanel>
</Button>
<!-- 2. デバッグモード(テストプレイモード)強制有効化 -->
<Border Background="#181824" BorderBrush="#35354A" BorderThickness="1" CornerRadius="6" Padding="10,8" Margin="0,0,0,10">
<StackPanel>
<CheckBox x:Name="chkWolfDebugMode" IsChecked="{Binding SelectedItem.WolfDebugMode, ElementName=lstGames, Mode=TwoWay}"
FontSize="13" FontWeight="Bold" Foreground="#81ECEC">
<TextBlock Text="⚡ テストプレイ(デバッグ)モードで起動" Margin="4,0,0,0"/>
</CheckBox>
<TextBlock Text="ウディタ開発用テストプレイ引数を付与して起動します。[F3] デバッグウィンドウ、[F9] 変数エディタ、[F7/F8]、[Ctrl] 壁すり抜けが即座に動作します。"
FontSize="10" Foreground="{StaticResource TextSecondary}" TextWrapping="Wrap" Margin="22,3,0,6"/>
<CheckBox x:Name="chkWolfDebugWindow" IsChecked="{Binding SelectedItem.WolfDebugWindow, ElementName=lstGames, Mode=TwoWay}"
FontSize="11" Foreground="{StaticResource TextPrimary}" Margin="22,0,0,0" Content="起動時にデバッグウィンドウ(F3)を即時表示する"/>
</StackPanel>
</Border>
<!-- 3. プロキシDLL(メモリフック / スピードハック)機能拡張 -->
<!-- 2. プロキシDLL(メモリフック / スピードハック)機能拡張 -->
<Border Background="#181824" BorderBrush="#35354A" BorderThickness="1" CornerRadius="6" Padding="10,8" Margin="0,0,0,10">
<StackPanel>
<CheckBox x:Name="chkWolfProxyDll" IsChecked="{Binding SelectedItem.WolfProxyDll, ElementName=lstGames, Mode=TwoWay}"
@@ -1125,7 +1111,7 @@
</StackPanel>
</Border>
<!-- 4. Data.wolf アーカイブ管理(解凍・抽出・復元) -->
<!-- 3. Data.wolf アーカイブ管理(解凍・抽出・復元) -->
<Border Background="#181824" BorderBrush="#35354A" BorderThickness="1" CornerRadius="6" Padding="10,8" Margin="0,0,0,10">
<StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,0,0,4">
-8
View File
@@ -770,14 +770,6 @@ namespace GameLauncher
}
}
// ウディタでデバッグ(テストプレイ)モードがONの場合、公式デバッグ引数を付与
if (game is TkoolGameItem tgWolf && tgWolf.IsWolf && tgWolf.WolfDebugMode)
{
var debugArgs = _wolfModService.GetDebugArguments(tgWolf.WolfDebugWindow);
startInfo.Arguments = debugArgs;
AppendLog($"[ウディタ デバッグ起動] テストプレイモード引数を指定: {debugArgs}");
}
Process.Start(startInfo);
game.LastLaunched = DateTime.Now;
-16
View File
@@ -277,27 +277,11 @@ namespace GameLauncher.Models
}
// ================= WOLF RPGエディター関連プロパティ =================
private bool _wolfDebugMode = false;
private bool _wolfDebugWindow = false;
private bool _wolfProxyDll = false;
private double _wolfSpeedMultiplier = 3.0;
private bool _hasWolfArchive = false;
private bool _isWolfExtracted = false;
/// <summary>テストプレイ(デバッグ)モードで起動するか</summary>
public bool WolfDebugMode
{
get => _wolfDebugMode;
set { if (_wolfDebugMode != value) { _wolfDebugMode = value; OnPropertyChanged(); } }
}
/// <summary>デバッグウィンドウ(F3)を起動時に表示するか</summary>
public bool WolfDebugWindow
{
get => _wolfDebugWindow;
set { if (_wolfDebugWindow != value) { _wolfDebugWindow = value; OnPropertyChanged(); } }
}
/// <summary>プロキシDLL(version.dll 倍速/メモリフック)を適用するか</summary>
public bool WolfProxyDll
{
-6
View File
@@ -50,8 +50,6 @@ namespace GameLauncher.Services
public string? RgssArchivePath { get; set; }
public bool HasWolfArchive { get; set; }
public bool IsWolfExtracted { get; set; }
public bool WolfDebugMode { get; set; }
public bool WolfDebugWindow { get; set; }
public bool WolfProxyDll { get; set; }
public double WolfSpeedMultiplier { get; set; } = 3.0;
public bool HasSrpgArchive { get; set; }
@@ -162,8 +160,6 @@ namespace GameLauncher.Services
RgssArchivePath = entry.RgssArchivePath,
HasWolfArchive = entry.HasWolfArchive,
IsWolfExtracted = entry.IsWolfExtracted,
WolfDebugMode = entry.WolfDebugMode,
WolfDebugWindow = entry.WolfDebugWindow,
WolfProxyDll = entry.WolfProxyDll,
WolfSpeedMultiplier = entry.WolfSpeedMultiplier > 0 ? entry.WolfSpeedMultiplier : 3.0,
HasSrpgArchive = entry.HasSrpgArchive,
@@ -439,8 +435,6 @@ namespace GameLauncher.Services
RgssArchivePath = tg.RgssArchivePath,
HasWolfArchive = tg.HasWolfArchive,
IsWolfExtracted = tg.IsWolfExtracted,
WolfDebugMode = tg.WolfDebugMode,
WolfDebugWindow = tg.WolfDebugWindow,
WolfProxyDll = tg.WolfProxyDll,
WolfSpeedMultiplier = tg.WolfSpeedMultiplier,
HasSrpgArchive = tg.HasSrpgArchive,
-9
View File
@@ -129,15 +129,6 @@ namespace GameLauncher.Services
}
}
/// <summary>
/// デバッグ(テストプレイ)モード用の起動コマンドライン引数を取得します。
/// ウディタ公式仕様の引数(Test_Of_Main Use_Debug_Window)
/// </summary>
public string GetDebugArguments(bool useDebugWindow = true)
{
return useDebugWindow ? "Test_Of_Main Use_Debug_Window" : "Test_Of_Main";
}
/// <summary>
/// 全ての改造(プロキシDLL、パッチ等)を解除し、ゲームを完全に元に戻します。
/// </summary>