From 55391bbb16fd833d13e14cb6869408d711e2687c Mon Sep 17 00:00:00 2001 From: relnev Date: Wed, 8 Jan 2003 04:02:26 +0000 Subject: some more hacking... git-svn-id: svn://svn.icculus.org/blackshades/trunk@35 5198baeb-e213-0410-be47-fc2ff85ca46f --- Source/Support.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'Source/Support.cpp') diff --git a/Source/Support.cpp b/Source/Support.cpp index a262122..3e47035 100644 --- a/Source/Support.cpp +++ b/Source/Support.cpp @@ -1,5 +1,9 @@ #include "Support.h" +#include "Files.h" +#include +#include +#include #include #include "SDL.h" @@ -42,3 +46,24 @@ void DisposeMouse() { STUB_FUNCTION; } + +#ifndef O_BINARY +#define O_BINARY 0 +#endif + +int Files::OpenFile(Str255 Name) +{ + sFile = open((char *)Name, O_RDONLY | O_BINARY); + return sFile; +} + +void Files::EndLoad() +{ + if (sFile != -1) { + FSClose( sFile ); + } + + sFile = -1; +} + + -- cgit v1.2.3