Implement NetLogSave method to dump NetLog to a file.

This commit is contained in:
TomAwezome 2022-01-22 04:16:21 -05:00
parent b66744f5b2
commit 9f6486c0de

View file

@ -9,6 +9,12 @@ U0 NetLogTask(I64)
}
}
U0 NetLogSave()
{
StrCopy(net_log_task->put_doc->filename.name, "::/Home/Net/Log.DD");
DocWrite(net_log_task->put_doc);
}
U0 NetLogInit()
{
net_log_task = Spawn(&ServerCmdLine, NULL, "Network Log");
@ -19,12 +25,6 @@ U0 NetLogInit()
net_log_task->text_attr = WHITE << 4 + LTGRAY;
DocClear(net_log_task->border_doc, TRUE);
/*
if (Fs == sys_task)
WinFocus(sys_task->next_task);
else
WinFocus;*/
WinHorz(TEXT_COLS / 3, 2 * TEXT_COLS / 3, net_log_task);
WinVert(2 * TEXT_ROWS / 3, 5 * TEXT_ROWS / 6, net_log_task);
WinFocus(net_log_task);