summaryrefslogtreecommitdiff
path: root/src/heretic/doomdef.h
diff options
context:
space:
mode:
authorSimon Howard2013-09-24 20:52:59 +0000
committerSimon Howard2013-09-24 20:52:59 +0000
commit551df9d933a3f8d4c7dd633f62671433dc70cc1d (patch)
tree33d12a73d2b21ee04fb0a39a54d83ae84a1937c6 /src/heretic/doomdef.h
parent0ac394902ef009fe0b41f77095b069d4f6d7e632 (diff)
downloadchocolate-doom-551df9d933a3f8d4c7dd633f62671433dc70cc1d.tar.gz
chocolate-doom-551df9d933a3f8d4c7dd633f62671433dc70cc1d.tar.bz2
chocolate-doom-551df9d933a3f8d4c7dd633f62671433dc70cc1d.zip
Add portable functions to read integers from savegame files and use
these instead of reading directly from memory buffers. Subversion-branch: /branches/v2-branch Subversion-revision: 2682
Diffstat (limited to 'src/heretic/doomdef.h')
-rw-r--r--src/heretic/doomdef.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/heretic/doomdef.h b/src/heretic/doomdef.h
index 84b4810b..55813dbe 100644
--- a/src/heretic/doomdef.h
+++ b/src/heretic/doomdef.h
@@ -553,8 +553,6 @@ extern ticcmd_t *netcmds;
#define SAVEGAMESIZE 0x30000
#define SAVESTRINGSIZE 24
-extern byte *savebuffer;
-extern byte *save_p;
extern mapthing_t *deathmatch_p;
extern mapthing_t deathmatchstarts[10];
@@ -668,11 +666,16 @@ void G_SaveGame(int slot, char *description);
// Support routines for saving games
char *SV_Filename(int slot);
void SV_Open(char *fileName);
+void SV_OpenRead(char *fileName);
void SV_Close(char *fileName);
void SV_Write(void *buffer, int size);
void SV_WriteByte(byte val);
void SV_WriteWord(unsigned short val);
void SV_WriteLong(unsigned int val);
+void SV_Read(void *buffer, int size);
+byte SV_ReadByte(void);
+uint16_t SV_ReadWord(void);
+uint32_t SV_ReadLong(void);
extern char *savegamedir;