From 26b57fbea1a969ef6405365ff78391e9d3605621 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Tue, 11 Oct 2022 03:18:42 +0100 Subject: add cmakelists for CLion, tons and tons of reorganisation using new info from the Pro8 compiler --- command_line/CmdLine/Src/MacEmul/LowMem.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 command_line/CmdLine/Src/MacEmul/LowMem.c (limited to 'command_line/CmdLine/Src/MacEmul/LowMem.c') diff --git a/command_line/CmdLine/Src/MacEmul/LowMem.c b/command_line/CmdLine/Src/MacEmul/LowMem.c new file mode 100644 index 0000000..7fab079 --- /dev/null +++ b/command_line/CmdLine/Src/MacEmul/LowMem.c @@ -0,0 +1,20 @@ +#include "mwcc_decomp.h" + +static OSErr memErr; + +UInt32 LMGetTicks() { + return (OS_GetMilliseconds() * 60) / 1000; +} + +UInt32 LMGetTime() { + return OS_GetMilliseconds() / 1000; +} + +OSErr LMGetMemErr() { + return memErr; +} + +void LMSetMemErr(OSErr value) { + memErr = value; +} + -- cgit v1.2.3