mirror of
https://gitlab.com/rnger/amath
synced 2025-10-05 02:19:17 +00:00
ARexx only instance
This commit is contained in:
@ -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;
|
||||
|
@ -37,6 +37,7 @@ struct amathargs
|
||||
{
|
||||
long shell;
|
||||
long noansi;
|
||||
long arexx;
|
||||
char* input;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user