#include <fstream>#include <cstdio>#include <cstdlib>#include <cstring>#include <ctime>#include "exceptions.h"#include "fnames.h"#include "gamewin.h"#include "gameclk.h"#include "gamemap.h"#include "utils.h"#include "gump_utils.h"#include "game.h"#include "Flex.h"#include "databuf.h"#include "Newfile_gump.h"#include "Yesno_gump.h"#include "actors.h"#include "party.h"#include "version.h"Include dependency graph for gamedat.cc:

Go to the source code of this file.
Functions | |
| static long | Savefile (ostream &out, const char *fname) |
| static long | SavefileFromDataSource (ostream &out, DataSource &source, const char *fname) |
Variables | |
| int | save_compression |
| static const char * | bgsavefiles [] |
| static const int | bgnumsavefiles = sizeof(bgsavefiles)/sizeof(bgsavefiles[0]) |
| static const char * | sisavefiles [] |
| static const int | sinumsavefiles = sizeof(sisavefiles)/sizeof(sisavefiles[0]) |
| static long Savefile | ( | ostream & | out, | |
| const char * | fname | |||
| ) | [static] |
Definition at line 252 of file gamedat.cc.
References StreamDataSource::getSize(), Game::is_editing(), len, StreamDataSource::read(), StreamDataSource::seek(), and U7open().
Referenced by Game_window::save_gamedat().
Here is the call graph for this function:

| static long SavefileFromDataSource | ( | ostream & | out, | |
| DataSource & | source, | |||
| const char * | fname | |||
| ) | [static] |
Definition at line 288 of file gamedat.cc.
References DataSource::getSize(), len, and DataSource::read().
Here is the call graph for this function:

const int bgnumsavefiles = sizeof(bgsavefiles)/sizeof(bgsavefiles[0]) [static] |
Definition at line 231 of file gamedat.cc.
const char* bgsavefiles[] [static] |
Initial value:
{
"<GAMEDAT>/scrnshot.shp" , "<GAMEDAT>/saveinfo.dat" ,
"<GAMEDAT>/identity" ,
"<GAMEDAT>/exult.ver" , "<GAMEDAT>/newgame.ver" ,
"<GAMEDAT>/npc.dat" , "<GAMEDAT>/monsnpcs.dat" ,
"<GAMEDAT>/usecode.var" , "<GAMEDAT>/usecode.dat" ,
"<GAMEDAT>/flaginit" , "<GAMEDAT>/gamewin.dat" ,
"<GAMEDAT>/schedule.dat"
}
Definition at line 222 of file gamedat.cc.
| int save_compression |
Definition at line 119 of file exult.cc.
Referenced by exult_main(), and Game_window::save_gamedat().
const int sinumsavefiles = sizeof(sisavefiles)/sizeof(sisavefiles[0]) [static] |
Definition at line 242 of file gamedat.cc.
const char* sisavefiles[] [static] |
Initial value:
{
"<GAMEDAT>/scrnshot.shp" , "<GAMEDAT>/saveinfo.dat" ,
"<GAMEDAT>/identity" ,
"<GAMEDAT>/exult.ver" , "<GAMEDAT>/newgame.ver" ,
"<GAMEDAT>/npc.dat" , "<GAMEDAT>/monsnpcs.dat" ,
"<GAMEDAT>/usecode.var" , "<GAMEDAT>/usecode.dat" ,
"<GAMEDAT>/flaginit" , "<GAMEDAT>/gamewin.dat" ,
"<GAMEDAT>/schedule.dat" , "<GAMEDAT>/keyring.dat"
}
Definition at line 233 of file gamedat.cc.
1.5.1