[WIP] DAP

This commit is contained in:
Joshua "Yoshi" Askharoun
2025-12-01 00:45:01 -06:00
parent 22e78658ce
commit 27ee87c8f0
9 changed files with 128 additions and 111 deletions
+5 -5
View File
@@ -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;
}
}
+1 -1
View File
@@ -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",