#include <cstdlib>
#include <cstring>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <stdarg.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fstream>
#include <boost/regex.hpp>
#include "global.h"
#include "typen.h"
#include "basegfx.h"
#include "misc.h"
#include "sgstream.h"
#include "basestrm.h"
#include "palette.h"
#include "gameoptions.h"
Include dependency graph for sgstream.cpp:

Go to the source code of this file.
Functions | |
| void | loadpalette (void) |
| ASCString | resolvePath (ASCString path) |
| bool | makeDirectory (const ASCString &path) |
| ASCString | getDirectory (ASCString filename) |
| ASCString | getConfigFileName () |
| int | readgameoptions (const ASCString &filename) |
| bool | writegameoptions (ASCString configFileName) |
| void | checkFileLoadability (const ASCString &filename) |
| void | initFileIO (const ASCString &configFileName, int skipChecks) |
| void | versionError (const ASCString &filename, const ASCString &location) |
| void | checkFileVersion (const ASCString &filename, const ASCString &containername, int version) |
| void | checkDataVersion () |
Variables | |
| const char * | asc_EnvironmentName = "ASC_CONFIGFILE" |
| int | dataVersion = 0 |
| const int | object_version = 1 |
| const int | technology_version = 1 |
These routines are gradually being moved to become methods of their classes
Definition in file sgstream.cpp.
|
|
Definition at line 546 of file sgstream.cpp. References checkFileVersion(), and exist(). Referenced by main(). |
|
|
Definition at line 426 of file sgstream.cpp. References exist(), fatalError(), getSearchPath(), getSearchPathNum(), CGameOptions::Instance(), tnstream::readChar(), tnstream::reading, and writegameoptions(). Referenced by initFileIO(). |
|
||||||||||||||||
|
Definition at line 527 of file sgstream.cpp. References atoi(), exist(), tn_c_lzw_filestream::getLocation(), tnstream::reading, tnstream::readString(), and versionError(). Referenced by checkDataVersion(). |
|
|
Definition at line 349 of file sgstream.cpp. Referenced by initFileIO(), and showSearchPath(). |
|
|
Definition at line 169 of file sgstream.cpp. References directoryExist(). Referenced by initFileIO(), and ConfigurationFileLocatorCore::setExecutableLocation(). |
|
||||||||||||
|
Definition at line 461 of file sgstream.cpp. References addSearchPath(), appendbackslash(), checkFileLoadability(), displayLogMessage(), fatalError(), getConfigFileName(), getDirectory(), tfileerror::getFileName(), getSearchPath(), getSearchPathNum(), CGameOptions::Instance(), isPathRelative(), opencontainer(), readgameoptions(), and resolvePath(). Referenced by main(). |
|
|
Definition at line 66 of file sgstream.cpp. References txlattables::a, asc_malloc(), asc_paletteloaded, colormixbuf, colormixbufchar, displayLogMessage(), generategrayxlattable(), pal, tn_c_lzw_filestream::readdata(), tnstream::reading, txlattables::xl, xlatpictgraytable, and xlattables. Referenced by gamethread(), loadcursor(), loaddata(), GraphicSetManager_Base::loadData(), and mapeditorMainThread(). |
|
|
Definition at line 145 of file sgstream.cpp. References constructFileName(), createDirectory(), directoryExist(), and resolvePath(). Referenced by readgameoptions(), and writegameoptions(). |
|
|
Definition at line 360 of file sgstream.cpp. References displayLogMessage(), exist(), fatalError(), tfileerror::getFileName(), getSearchPath(), CGameOptions::Instance(), makeDirectory(), and writegameoptions(). Referenced by checkbi3dir(), and initFileIO(). |
|
|
Definition at line 112 of file sgstream.cpp. Referenced by ConfigurationFileLocatorCore::getConfigFileName(), initFileIO(), makeDirectory(), and writegameoptions(). |
|
||||||||||||
|
Definition at line 519 of file sgstream.cpp. References fatalError(). Referenced by checkFileVersion(). |
|
|
Definition at line 404 of file sgstream.cpp. References extractPath(), CGameOptions::Instance(), makeDirectory(), and resolvePath(). Referenced by checkFileLoadability(), main(), and readgameoptions(). |
|
|
Definition at line 57 of file sgstream.cpp. Referenced by ConfigurationFileLocatorCore::getConfigFileName(). |
|
|
Definition at line 58 of file sgstream.cpp. |
|
|
Definition at line 60 of file sgstream.cpp. |
|
|
Definition at line 61 of file sgstream.cpp. |
1.4.2