aboutsummaryrefslogtreecommitdiff
path: root/engines/mortevielle/var_mor.h
diff options
context:
space:
mode:
authorPaul Gilbert2011-12-31 18:21:02 +1100
committerStrangerke2012-04-06 08:18:58 +0200
commitab089af889567e54fa3dda7483c42a294e1aa2f9 (patch)
tree8bf80afcdda1d95d2eca623706dce6c6523e264b /engines/mortevielle/var_mor.h
parent4dd8bce651f43f4f84dccc3655eb598cb9de97cc (diff)
downloadscummvm-rg350-ab089af889567e54fa3dda7483c42a294e1aa2f9.tar.gz
scummvm-rg350-ab089af889567e54fa3dda7483c42a294e1aa2f9.tar.bz2
scummvm-rg350-ab089af889567e54fa3dda7483c42a294e1aa2f9.zip
MORTEVIELLE: More compilation fixes
Diffstat (limited to 'engines/mortevielle/var_mor.h')
-rw-r--r--engines/mortevielle/var_mor.h22
1 files changed, 18 insertions, 4 deletions
diff --git a/engines/mortevielle/var_mor.h b/engines/mortevielle/var_mor.h
index 4f8e0fe523..fe0c3c5b67 100644
--- a/engines/mortevielle/var_mor.h
+++ b/engines/mortevielle/var_mor.h
@@ -51,12 +51,9 @@ namespace Mortevielle {
#define chr(v) ((char) v)
#define lo(v) (v & 0xff)
#define hi(v) ((v >> 8) & 0xff)
+#define swap(v) (((lo(v)) << 8) | ((hi(v)) >> 8))
#define odd(v) ((v % 2) == 1)
-// TODO: Replace the following with proper implementations
-#define mortevielle_exit(ret) error("Exit the game")
-#define clrscr {}
-
/*---------------------------------------------------------------------------*/
/*------------------------- CONSTANTS ----------------------------------*/
/*---------------------------------------------------------------------------*/
@@ -393,6 +390,23 @@ extern pattern tpt[15];
void hirs();
void affcar(int gd, int x, int y, int coul, int chr);
void putpix(int gd, int x, int y, int coul);
+Common::String copy(const Common::String &s, int idx, size_t size);
+void Val(const Common::String &s, int &V, int Code);
+void affput(int Chx, int Gd, int x, int y, int coul, int char_);
+
+/*---------------------------------------------------------------------------*/
+/*------------------------------ STUBS ------------------------------*/
+/*---------------------------------------------------------------------------*/
+// TODO: Replace the following with proper implementations, or refactor out the code using them
+
+extern int port[0xfff];
+
+#define hires {}
+
+#define mortevielle_exit(ret) error("Exit the game")
+// Text screen functions not relevant for ScummVM
+#define clrscr {}
+#define gotoxy(x,y) {}
} // End of namespace Mortevielle