2020-02-15 20:01:48 +00:00
|
|
|
//See $LK,"Define",A="HI:Define"$.
|
|
|
|
|
2021-07-02 00:53:42 +01:00
|
|
|
//These might be in the System task.
|
2020-12-23 23:27:18 +00:00
|
|
|
DefineLoad("ST_YES_NO", "(Yes or No)");
|
|
|
|
DefineLoad("ST_EXIT", "Exit");
|
|
|
|
DefineListLoad("ST_NO_YES_LIST", "No\0Yes\0");
|
2020-02-15 20:01:48 +00:00
|
|
|
|
|
|
|
//New strings might be loaded for each user
|
|
|
|
//to override.
|
|
|
|
|
|
|
|
"Spanish";
|
|
|
|
if (YorN) {
|
2020-12-23 23:27:18 +00:00
|
|
|
DefineLoad("ST_YES_NO", "(Si or No)");
|
|
|
|
DefineLoad("ST_EXIT", "Salida");
|
|
|
|
DefineListLoad("ST_NO_YES_LIST", "No\0Si\0");
|
2020-02-15 20:01:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Bool Quit()
|
|
|
|
{
|
2020-02-20 23:40:10 +00:00
|
|
|
Bool res;
|
2020-12-23 23:27:18 +00:00
|
|
|
U8 *st;
|
|
|
|
I64 i;
|
|
|
|
|
|
|
|
while (TRUE)
|
|
|
|
{
|
|
|
|
"%S %S?", "ST_EXIT", "ST_YES_NO";
|
|
|
|
st = StrGet;
|
|
|
|
i = DefineMatch(st, "ST_NO_YES_LIST", LMF_IGNORE_CASE);
|
|
|
|
if (i >= 0)
|
|
|
|
{
|
|
|
|
res = i;
|
2020-02-20 23:40:10 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
Free(st);
|
|
|
|
}
|
2020-12-23 23:27:18 +00:00
|
|
|
|
2020-02-20 23:40:10 +00:00
|
|
|
return res;
|
2020-02-15 20:01:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Quit;
|