mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-12-22 10:40:56 +00:00
706eb5efeb
* Changed the save format a little more, since I had free reign over it. * Modified the string drawing functions to not awkwardly clip at the very edges of the screen, considering the relevant patch drawing functions avoid out-of-range memory writes.
45 lines
1.1 KiB
C
45 lines
1.1 KiB
C
// SONIC ROBO BLAST 2
|
|
//-----------------------------------------------------------------------------
|
|
// Copyright (C) 1993-1996 by id Software, Inc.
|
|
// Copyright (C) 1998-2000 by DooM Legacy Team.
|
|
// Copyright (C) 1999-2016 by Sonic Team Junior.
|
|
//
|
|
// This program is free software distributed under the
|
|
// terms of the GNU General Public License, version 2.
|
|
// See the 'LICENSE' file for more details.
|
|
//-----------------------------------------------------------------------------
|
|
/// \file p_saveg.h
|
|
/// \brief Savegame I/O, archiving, persistence
|
|
|
|
#ifndef __P_SAVEG__
|
|
#define __P_SAVEG__
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
// Persistent storage/archiving.
|
|
// These are the load / save game routines.
|
|
|
|
void P_SaveGame(void);
|
|
void P_SaveNetGame(void);
|
|
boolean P_LoadGame(INT16 mapoverride);
|
|
boolean P_LoadNetGame(void);
|
|
|
|
mobj_t *P_FindNewPosition(UINT32 oldposition);
|
|
|
|
typedef struct
|
|
{
|
|
UINT8 skin;
|
|
UINT8 botskin;
|
|
INT32 score;
|
|
INT32 lives;
|
|
INT32 continues;
|
|
UINT16 emeralds;
|
|
UINT8 numgameovers;
|
|
} savedata_t;
|
|
|
|
extern savedata_t savedata;
|
|
extern UINT8 *save_p;
|
|
|
|
#endif
|