Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include "config.h"
#include <stdio.h>
#include <string>
#include <vector>
#include <iostream>
#include <stdarg.h>
#include "gfx/vec.h"
#include "networking/const.h"
#include "pk3.h"
#include <gnuhash.h>
Go to the source code of this file.
Classes | |
class | VSFileSystem::VSFile |
Namespaces | |
VSFileSystem | |
Constant Groups | |
VSFileSystem | |
Macros | |
#define | DELIM '/' |
#define | DELIMSTR "/" |
Typedefs | |
typedef vsUMap< string, VSError > | VSFileSystem::FileLookupCache |
Functions | |
VegaConfig * | createVegaConfig (const char *file) |
ObjSerial | getUniqueSerial () |
void | VSFileSystem::DisplayType (VSFileSystem::VSFileType type) |
void | VSFileSystem::DisplayType (VSFileSystem::VSFileType type, std::ostream &ostr) |
int | VSFileSystem::GetReadBytes (char *fmt, va_list ap) |
VSError | VSFileSystem::CachedFileLookup (FileLookupCache &cache, const string &file, VSFileType type) |
FILE * | VSFileSystem::vs_open (const char *filename, const char *mode) |
size_t | VSFileSystem::vs_read (void *ptr, size_t size, size_t nmemb, FILE *fp) |
size_t | VSFileSystem::vs_write (const void *ptr, size_t size, size_t nmemb, FILE *fp) |
int | VSFileSystem::vs_fseek (FILE *fp, long offset, int whence) |
long | VSFileSystem::vs_ftell (FILE *fp) |
void | VSFileSystem::vs_rewind (FILE *fp) |
void | VSFileSystem::vs_close (FILE *fp) |
bool | VSFileSystem::vs_feof (FILE *fp) |
long | VSFileSystem::vs_getsize (FILE *fp) |
int | VSFileSystem::vs_fprintf (FILE *fp, const char *format,...) |
void | VSFileSystem::vs_dprintf (char level, const char *format,...) |
template<class A > | |
int | VSFileSystem::vs_fscanf (FILE *fp, const char *format, A *a) |
template<class A , class B > | |
int | VSFileSystem::vs_fscanf (FILE *fp, const char *format, A *a, B *b) |
template<class A , class B , class C > | |
int | VSFileSystem::vs_fscanf (FILE *fp, const char *format, A *a, B *b, C *c) |
template<class A , class B , class C , class D > | |
int | VSFileSystem::vs_fscanf (FILE *fp, const char *format, A *a, B *b, C *c, D *d) |
template<class A , class B , class C , class D , class E > | |
int | VSFileSystem::vs_fscanf (FILE *fp, const char *format, A *a, B *b, C *c, D *d, E *e) |
template<class A , class B , class C , class D , class E , class F > | |
int | VSFileSystem::vs_fscanf (FILE *fp, const char *format, A *a, B *b, C *c, D *d, E *e, F *f) |
std::string | VSFileSystem::GetHashName (const std::string &name) |
string | VSFileSystem::GetHashName (const std::string &name, const class Vector &scale, int faction) |
std::string | VSFileSystem::GetSharedTextureHashName (const std::string &name) |
std::string | VSFileSystem::GetSharedSoundHashName (const std::string &name) |
string | VSFileSystem::GetSharedMeshHashName (const std::string &, const class Vector &scale, int faction) |
std::string | VSFileSystem::MakeSharedStarSysPath (const std::string &s) |
std::string | VSFileSystem::MakeSharedPath (const std::string &s) |
std::string | VSFileSystem::GetCorrectStarSysPath (const std::string &name, bool &autogenerated) |
void | VSFileSystem::InitPaths (string conf, string subdir) |
void | VSFileSystem::InitDataDirectory () |
void | VSFileSystem::InitHomeDirectory () |
void | VSFileSystem::LoadConfig (string subdir) |
void | VSFileSystem::InitMods () |
void | VSFileSystem::ChangeToProgramDirectory (char *argv0) |
void | VSFileSystem::CreateDirectoryAbs (const char *filename) |
void | VSFileSystem::CreateDirectoryAbs (const string &filename) |
void | VSFileSystem::CreateDirectoryHome (const char *filename) |
void | VSFileSystem::CreateDirectoryHome (const string &filename) |
void | VSFileSystem::CreateDirectoryData (const char *filename) |
void | VSFileSystem::CreateDirectoryData (const string &filename) |
bool | VSFileSystem::DirectoryExists (const char *filename) |
bool | VSFileSystem::DirectoryExists (const string &filename) |
int | VSFileSystem::FileExists (const string &root, const char *filename, VSFileType type, bool lookinvolume) |
int | VSFileSystem::FileExists (const string &root, const string &filename, VSFileType type, bool lookinvolume) |
int | VSFileSystem::FileExistsHome (const char *filename, VSFileType type) |
int | VSFileSystem::FileExistsHome (const string &filename, VSFileType type) |
int | VSFileSystem::FileExistsData (const char *filename, VSFileType type) |
int | VSFileSystem::FileExistsData (const string &filename, VSFileType type) |
VSError | VSFileSystem::GetError (const char *str) |
VSError | VSFileSystem::LookForFile (VSFile &f, VSFileType type, VSFileMode mode) |
VSError | VSFileSystem::LookForFile (const string &file, VSFileType type, VSFileMode mode) |
std::ostream & | operator<< (std::ostream &ostr, VSFileSystem::VSError err) |
std::ostream & | operator<< (std::ostream &ostr, VSFileSystem::VSFileType type) |
std::string | nameof (VSFileSystem::VSFileType type) |
Variables | |
char * | CONFIGFILE |
ObjSerial | serial_seed |
string | VSFileSystem::HOMESUBDIR |
#define DELIM '/' |
Definition at line 23 of file vsfilesystem.h.
#define DELIMSTR "/" |
Definition at line 24 of file vsfilesystem.h.
Referenced by getCompilingName().
VegaConfig* createVegaConfig | ( | const char * | file) |
Definition at line 6 of file libserver.cpp.
Referenced by VSFileSystem::LoadConfig().
ObjSerial getUniqueSerial | ( | ) |
Definition at line 61 of file vsfilesystem.cpp.
References fprintf, MAXSERIAL, serial_seed, SERVER, usedSerial(), and usedSerials.
Referenced by Mission::call_unit_launch(), UniverseUtil::ComputeSystemSerials(), Unit::EjectCargo(), and Unit::Fire().
std::string nameof | ( | VSFileSystem::VSFileType | type) |
Definition at line 1999 of file vsfilesystem.cpp.
References VSFileSystem::AccountFile, VSFileSystem::AiFile, VSFileSystem::AnimFile, CASE, VSFileSystem::CockpitFile, VSFileSystem::CommFile, VSFileSystem::MeshFile, VSFileSystem::MissionFile, VSFileSystem::MusicFile, VSFileSystem::PythonFile, VSFileSystem::SaveFile, VSFileSystem::SoundFile, VSFileSystem::SystemFile, VSFileSystem::TextureFile, VSFileSystem::UnitFile, VSFileSystem::UniverseFile, VSFileSystem::UnknownFile, VSFileSystem::VSSpriteFile, and VSFileSystem::ZoneBuffer.
Referenced by VSFileSystem::FileExists().
std::ostream& operator<< | ( | std::ostream & | ostr, |
VSFileSystem::VSError | err | ||
) |
Definition at line 151 of file vsnet_dloadenum.cpp.
References VSFileSystem::BadFormat, CASE, VSFileSystem::DownloadInterrupted, VSFileSystem::EndOfFile, VSFileSystem::FileNotFound, VSFileSystem::IncompleteRead, VSFileSystem::IncompleteWrite, VSFileSystem::IsDirectory, VSFileSystem::LocalPermissionDenied, VSFileSystem::Ok, VSFileSystem::RemotePermissionDenied, VSFileSystem::Shared, VSFileSystem::SocketError, and VSFileSystem::Unspecified.
std::ostream& operator<< | ( | std::ostream & | ostr, |
VSFileSystem::VSFileType | type | ||
) |
Definition at line 1993 of file vsfilesystem.cpp.
References VSFileSystem::DisplayType().
char* CONFIGFILE |
Definition at line 49 of file vsfilesystem.cpp.
Referenced by cleanup(), main(), ParseCommandLine(), AccountServer::start(), and NetServer::start().
ObjSerial serial_seed |
Definition at line 54 of file vsfilesystem.cpp.
Referenced by AccountServer::AccountServer(), getUniqueSerial(), and NetServer::NetServer().