2007-01-15 12:09:25 -08:00
|
|
|
/*
|
|
|
|
This file is part of Warzone 2100.
|
|
|
|
Copyright (C) 1999-2004 Eidos Interactive
|
2013-01-16 12:34:57 -08:00
|
|
|
Copyright (C) 2005-2013 Warzone 2100 Project
|
2007-01-15 12:09:25 -08:00
|
|
|
|
|
|
|
Warzone 2100 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.
|
|
|
|
|
|
|
|
Warzone 2100 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 Warzone 2100; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
2007-06-28 10:47:08 -07:00
|
|
|
|
2008-03-21 14:37:01 -07:00
|
|
|
#ifndef __INCLUDED_SRC_LOADSAVE_H__
|
|
|
|
#define __INCLUDED_SRC_LOADSAVE_H__
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
/***************************************************************************/
|
|
|
|
/*
|
|
|
|
* Global Definitions
|
|
|
|
*/
|
|
|
|
/***************************************************************************/
|
|
|
|
|
2011-02-25 12:30:13 -08:00
|
|
|
enum LOADSAVE_MODE
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
2012-04-02 14:50:57 -07:00
|
|
|
LOAD_FRONTEND_MISSION,
|
2007-06-28 10:47:08 -07:00
|
|
|
LOAD_MISSIONEND,
|
2012-04-02 14:50:57 -07:00
|
|
|
LOAD_INGAME_MISSION,
|
|
|
|
LOAD_FRONTEND_SKIRMISH,
|
|
|
|
LOAD_INGAME_SKIRMISH,
|
2007-06-28 10:47:08 -07:00
|
|
|
SAVE_MISSIONEND,
|
2012-04-02 14:50:57 -07:00
|
|
|
SAVE_INGAME_MISSION,
|
|
|
|
SAVE_INGAME_SKIRMISH
|
2011-02-25 12:30:13 -08:00
|
|
|
};
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
/***************************************************************************/
|
|
|
|
/*
|
|
|
|
* Global Variables
|
|
|
|
*/
|
|
|
|
/***************************************************************************/
|
|
|
|
|
2011-03-12 17:32:15 -08:00
|
|
|
extern bool bLoadSaveUp; // true when interface is up and should be run.
|
2007-06-28 10:47:08 -07:00
|
|
|
//the name of the save game to load from the front end
|
2006-11-03 13:35:50 -08:00
|
|
|
extern char saveGameName[256];
|
2007-11-11 12:23:38 -08:00
|
|
|
extern char sRequestResult[PATH_MAX];
|
2011-03-12 17:32:15 -08:00
|
|
|
extern bool bRequestLoad;
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
/***************************************************************************/
|
|
|
|
/*
|
|
|
|
* Global ProtoTypes
|
|
|
|
*/
|
|
|
|
/***************************************************************************/
|
|
|
|
|
|
|
|
extern void drawBlueBox (UDWORD x,UDWORD y, UDWORD w, UDWORD h);
|
|
|
|
|
2011-04-10 05:28:09 -07:00
|
|
|
extern bool addLoadSave(LOADSAVE_MODE mode, const char *title);
|
2011-03-12 17:32:15 -08:00
|
|
|
extern bool closeLoadSave (void);
|
|
|
|
extern bool runLoadSave (bool bResetMissionWidgets);
|
|
|
|
extern bool displayLoadSave (void);
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
extern void removeWildcards (char *pStr);
|
|
|
|
|
|
|
|
// return whether the save screen was displayed in the mission results screen
|
2011-03-12 17:32:15 -08:00
|
|
|
bool saveInMissionRes(void);
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
// return whether the save screen was displayed in the middle of a mission
|
2011-03-12 17:32:15 -08:00
|
|
|
bool saveMidMission(void);
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
|
|
|
|
extern void deleteSaveGame(char* saveGameName);
|
|
|
|
|
2008-03-21 14:37:01 -07:00
|
|
|
#endif // __INCLUDED_SRC_LOADSAVE_H__
|