aboutsummaryrefslogtreecommitdiff
path: root/Source/Support.cpp
diff options
context:
space:
mode:
authorrelnev <relnev@5198baeb-e213-0410-be47-fc2ff85ca46f>2003-01-08 03:04:16 +0000
committerrelnev <relnev@5198baeb-e213-0410-be47-fc2ff85ca46f>2003-01-08 03:04:16 +0000
commit6b42f4ce7a0488e59ca8b01323d1f6499b53b4c7 (patch)
tree0e7f8d4219db4683f4c196255dbcdf68c0a7a5ff /Source/Support.cpp
parent1531fe10a420e94768f01d8c63ae30e8d3286b03 (diff)
downloadblackshades-6b42f4ce7a0488e59ca8b01323d1f6499b53b4c7.tar.gz
added FSOpen hack
git-svn-id: svn://svn.icculus.org/blackshades/trunk@31 5198baeb-e213-0410-be47-fc2ff85ca46f
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;
+}