aboutsummaryrefslogtreecommitdiff
path: root/Source/Support.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Support.cpp')
-rw-r--r--Source/Support.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/Support.cpp b/Source/Support.cpp
index e7b7424..86c3547 100644
--- a/Source/Support.cpp
+++ b/Source/Support.cpp
@@ -1,10 +1,20 @@
#include "Support.h"
+#include <unistd.h>
+
#include "SDL.h"
void Microseconds (UnsignedWide *microTickCount)
{
/* NOTE: hi isn't used in BS, so it's not implemented here */
/* TODO: does game need microsecond precision? */
+ microTickCount->hi = 0;
microTickCount->lo = SDL_GetTicks() * 1000;
}
+
+OSErr FSRead(int refNum, long *count, void *buffPtr)
+{
+ read(refNum, buffPtr, *count);
+
+ return 0;
+}