ARexx only instance

This commit is contained in:
2021-01-15 00:21:28 +01:00
parent ffa586c694
commit e788fec496
2 changed files with 11 additions and 2 deletions
+10 -2
View File
@@ -71,7 +71,7 @@ static struct GfxBase *GfxBase = nullptr;
static struct LocaleBase *LocaleBase = nullptr;
static struct IntuitionBase *IntuitionBase = nullptr;
#define ARGS_FORMAT "SHELL/S,NOANSI/S,INPUT/F"
#define ARGS_FORMAT "SHELL/S,NOANSI/S,AREXX/S,INPUT/F"
#if defined(AOS3)
#define RDPTR LONG *
@@ -90,6 +90,7 @@ AmigaProgram::AmigaProgram()
rdargs = nullptr;
args.shell = FALSE;
args.noansi = FALSE;
args.arexx = FALSE;
args.input = nullptr;
Console = nullptr;
}
@@ -179,7 +180,14 @@ void AmigaProgram::Start()
AmigaARexx *arexx = new AmigaARexx();
arexx->Start();
Console->Start();
if (args.arexx)
{
Wait(SIGBREAKF_CTRL_C);
}
else
{
Console->Start();
}
arexx->Stop();
delete arexx;
+1
View File
@@ -37,6 +37,7 @@ struct amathargs
{
long shell;
long noansi;
long arexx;
char* input;
};