summaryrefslogtreecommitdiff
path: root/command_line/CmdLine/Src/MacEmul/LowMem.c
diff options
context:
space:
mode:
Diffstat (limited to 'command_line/CmdLine/Src/MacEmul/LowMem.c')
-rw-r--r--command_line/CmdLine/Src/MacEmul/LowMem.c20
1 files changed, 20 insertions, 0 deletions
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;
+}
+