aboutsummaryrefslogtreecommitdiff
path: root/sword2/tony_gsdk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sword2/tony_gsdk.cpp')
-rw-r--r--sword2/tony_gsdk.cpp55
1 files changed, 0 insertions, 55 deletions
diff --git a/sword2/tony_gsdk.cpp b/sword2/tony_gsdk.cpp
deleted file mode 100644
index 31c6dbf616..0000000000
--- a/sword2/tony_gsdk.cpp
+++ /dev/null
@@ -1,55 +0,0 @@
-/* Copyright (C) 1994-2003 Revolution Software Ltd
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * $Header$
- */
-
-// general odds and ends
-
-#include "common/stdafx.h"
-#include "common/file.h"
-#include "sword2/sword2.h"
-
-namespace Sword2 {
-
-uint32 Sword2Engine::readFile(const char *name, mem **membloc, uint32 uid) {
- // read the file in and place into an allocated MEM_float block
-
- File fh;
- uint32 size;
-
- if (!fh.open(name)) {
- debug(5, "Read_file cannot open %s", name);
- return 0;
- }
-
- size = fh.size();
-
- // reserve enough floating memory for the file
- *membloc = _memory->allocMemory(size, MEM_float, uid);
-
- if (fh.read((*membloc)->ad, size) != size) {
- debug(5, "Read_file read fail %d", name);
- return 0;
- }
-
- fh.close();
-
- // ok, done it - return bytes read
- return size;
-}
-
-} // End of namespace Sword2