mirror of
https://github.com/ZuneDev/ZuneUIXTools.git
synced 2026-07-27 13:11:59 -07:00
[WIP] DAP
This commit is contained in:
@@ -9,11 +9,11 @@ using System.Globalization;
|
||||
|
||||
namespace UIXC.Commands;
|
||||
|
||||
public class DebugCommand : Command<DebugCommand.Settings>
|
||||
public class DebugCommand : AsyncCommand<DebugCommand.Settings>
|
||||
{
|
||||
private bool isRunning = true;
|
||||
private readonly TaskCompletionSource _exit = new();
|
||||
|
||||
public override int Execute(CommandContext context, Settings settings)
|
||||
public override async Task<int> ExecuteAsync(CommandContext context, Settings settings)
|
||||
{
|
||||
if (settings.ConnectionString is null)
|
||||
{
|
||||
@@ -58,7 +58,7 @@ public class DebugCommand : Command<DebugCommand.Settings>
|
||||
|
||||
c.Start();
|
||||
|
||||
while (isRunning) ;
|
||||
await _exit.Task.ConfigureAwait(false);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -148,7 +148,7 @@ public class DebugCommand : Command<DebugCommand.Settings>
|
||||
break;
|
||||
|
||||
case "EXIT" or "QUIT":
|
||||
isRunning = false;
|
||||
_exit.SetResult();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"UIXC": {
|
||||
"commandName": "Project",
|
||||
|
||||
"commandLineArgs": "debug --symbols E:\\Repos\\ZuneDev\\ZuneUIXTools\\test\\syms --sources E:\\Repos\\ZuneDev\\ZuneUIXTools\\test",
|
||||
"commandLineArgs": "debug -u \\\\.\\pipe\\IrisUIX_OpenZune_WPFHost --symbols E:\\Repos\\ZuneDev\\ZuneUIXTools\\test\\syms --sources E:\\Repos\\ZuneDev\\ZuneUIXTools\\test",
|
||||
//"commandLineArgs": "decompile E:\\Documents\\REProj\\Zune\\Resources\\ZuneShellResources48\\NOWPLAYINGMUSICBACKGROUND.UIX -l xml -A ZuneShell.dll -A UIXControls.dll -A ZuneDBApi.dll -o E:\\Repos\\ZuneDev\\ZuneUIXTools\\test --symbols E:\\Repos\\ZuneDev\\ZuneUIXTools\\test\\syms",
|
||||
|
||||
//"commandLineArgs": "decompile E:\\Documents\\REProj\\Zune\\Resources\\ZuneMarketplaceResources48\\MarketplaceData.schema.xml -l xml -A ZuneShell.dll -A UIXControls.dll -A ZuneDBApi.dll -o E:\\Repos\\ZuneDev\\ZuneUIXTools\\test",
|
||||
|
||||
Reference in New Issue
Block a user