aboutsummaryrefslogtreecommitdiff
path: root/simon/simonsys.cpp
diff options
context:
space:
mode:
authorJames Brown2002-06-29 16:11:13 +0000
committerJames Brown2002-06-29 16:11:13 +0000
commit6a47365606e949700c58523e4c23f1021397a5ce (patch)
treea5c72ce8cf6e8138c886ede34dfbdf9bf39daeba /simon/simonsys.cpp
parent8327a4a845941379d67f147f6d2bd8423c8a36c8 (diff)
downloadscummvm-rg350-6a47365606e949700c58523e4c23f1021397a5ce.tar.gz
scummvm-rg350-6a47365606e949700c58523e4c23f1021397a5ce.tar.bz2
scummvm-rg350-6a47365606e949700c58523e4c23f1021397a5ce.zip
Large pointless commit #143: Start splitting Simon code into more managable and slightly understandable chunks
svn-id: r4438
Diffstat (limited to 'simon/simonsys.cpp')
-rw-r--r--simon/simonsys.cpp50
1 files changed, 0 insertions, 50 deletions
diff --git a/simon/simonsys.cpp b/simon/simonsys.cpp
index cb7f34bc9e..446059ab67 100644
--- a/simon/simonsys.cpp
+++ b/simon/simonsys.cpp
@@ -19,28 +19,9 @@
*
*/
-
#include "stdafx.h"
-#include "scummsys.h"
-#include "system.h"
-#include "../sound/mixer.h"
#include "simon.h"
-#include <stdarg.h>
-
-#ifdef WIN32
-#include <conio.h>
-#endif
-
-//uint16 swap16(uint16 a) {
-// return (a>>8)|(a<<8);
-//}
-
-//uint32 swap32(uint32 a) {
-// return (a>>24)|(a>>8)&0xFF00|(a<<8)&0xFF0000|(a<<24);
-//}
-
-
uint fileReadByte(FILE *in) {
byte b;
fread(&b, sizeof(b), 1, in);
@@ -84,41 +65,10 @@ void fileWriteBE16(FILE *in, uint16 value) {
-#if 0
-void NORETURN CDECL error(const char *s, ...) {
- char buf[1024];
- va_list va;
-
- va_start(va, s);
- vsprintf(buf, s, va);
- va_end(va);
-#ifdef WIN32
- fprintf(stderr, "Error: %s!\nPress a key to quit.\n", buf);
- _getch();
-#else
- fprintf(stderr, "Error: %s!\n", buf);
-#endif
- exit(1);
-
-}
-
-void CDECL warning(const char *s, ...) {
- char buf[1024];
- va_list va;
-
- va_start(va, s);
- vsprintf(buf, s, va);
- va_end(va);
- fprintf(stdout, "Warning: %s!\n", buf);
-}
-#endif
-
#ifndef WIN32
/* GetAsyncKeyState for unix */
int GetAsyncKeyState(int key) {
return 0;
}
-
-
#endif