aboutsummaryrefslogtreecommitdiff
path: root/simon/sys.cpp
diff options
context:
space:
mode:
authorPaweł Kołodziejski2002-09-16 08:22:30 +0000
committerPaweł Kołodziejski2002-09-16 08:22:30 +0000
commit29811c5fad6425519d24d8f2873482538410de7a (patch)
treead3be009f94ea9dcf68fa40f30913c1438712438 /simon/sys.cpp
parent02f9056b4a4f124e59c8172f1c70773d9482e1c6 (diff)
downloadscummvm-rg350-29811c5fad6425519d24d8f2873482538410de7a.tar.gz
scummvm-rg350-29811c5fad6425519d24d8f2873482538410de7a.tar.bz2
scummvm-rg350-29811c5fad6425519d24d8f2873482538410de7a.zip
simon also use class File
svn-id: r4948
Diffstat (limited to 'simon/sys.cpp')
-rw-r--r--simon/sys.cpp71
1 files changed, 0 insertions, 71 deletions
diff --git a/simon/sys.cpp b/simon/sys.cpp
deleted file mode 100644
index 5086ba9547..0000000000
--- a/simon/sys.cpp
+++ /dev/null
@@ -1,71 +0,0 @@
-/* ScummVM - Scumm Interpreter
- * Copyright (C) 2001/2002 The ScummVM project
- *
- * 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$
- *
- */
-
-#include "stdafx.h"
-#include "simon/simon.h"
-
-uint fileReadByte(FILE *in)
-{
- byte b;
- fread(&b, sizeof(b), 1, in);
- return b;
-}
-
-uint fileReadBE16(FILE *in)
-{
- byte b[2];
- fread(b, sizeof(b), 1, in);
- return (b[0] << 8) | b[1];
-}
-
-uint fileReadLE16(FILE *in)
-{
- byte b[2];
- fread(b, sizeof(b), 1, in);
- return (b[1] << 8) | b[0];
-}
-
-uint32 fileReadBE32(FILE *in)
-{
- byte b[4];
- fread(b, sizeof(b), 1, in);
- return (b[0] << 24) | (b[1] << 16) | (b[2] << 8) | b[3];
-}
-
-uint32 fileReadLE32(FILE *in)
-{
- byte b[4];
- fread(b, sizeof(b), 1, in);
- return (b[3] << 24) | (b[2] << 16) | (b[1] << 8) | b[0];
-}
-
-
-void fileWriteBE32(FILE *in, uint32 value)
-{
- value = TO_BE_32(value);
- fwrite(&value, sizeof(value), 1, in);
-}
-
-void fileWriteBE16(FILE *in, uint16 value)
-{
- value = TO_BE_16(value);
- fwrite(&value, sizeof(value), 1, in);
-}