#include <C4Reloc.h>
Classes | |
| class | const_iterator |
| struct | PathInfo |
Public Types | |
| enum | PathType { PATH_Regular , PATH_PreferredInstallationLocation , PATH_IncludingSubdirectories } |
| typedef std::vector< PathInfo > | PathList |
| typedef const_iterator | iterator |
Public Member Functions | |
| void | Init () |
| bool | AddPath (const char *path, PathType pathType=PATH_Regular) |
| iterator | begin () const |
| iterator | end () const |
| bool | Open (C4Group &group, const char *filename) const |
| bool | LocateItem (const char *filename, StdStrBuf &str) const |
| typedef const_iterator C4Reloc::iterator |
| typedef std::vector<PathInfo> C4Reloc::PathList |
| enum C4Reloc::PathType |
| Enumerator | |
|---|---|
| PATH_Regular | |
| PATH_PreferredInstallationLocation | |
| PATH_IncludingSubdirectories | |
Definition at line 25 of file C4Reloc.h.
| bool C4Reloc::AddPath | ( | const char * | path, |
| PathType | pathType = PATH_Regular |
||
| ) |
Definition at line 62 of file C4Reloc.cpp.
References IsGlobalPath().
Referenced by Init(), and C4Application::ParseCommandLine().
| C4Reloc::iterator C4Reloc::begin | ( | ) | const |
Definition at line 142 of file C4Reloc.cpp.
References C4Reloc::const_iterator::pathListIter.
Referenced by C4Language::Init().
| C4Reloc::iterator C4Reloc::end | ( | ) | const |
Definition at line 149 of file C4Reloc.cpp.
References C4Reloc::const_iterator::pathListIter.
Referenced by C4Language::Init().
| void C4Reloc::Init | ( | ) |
Definition at line 23 of file C4Reloc.cpp.
References AddPath(), StdStrBuf::Append(), StdStrBuf::AppendBackslash(), C4CFN_System, Config, DirectoryExists(), C4ConfigGeneral::ExePath, C4Config::General, StdStrBuf::getData(), ItemExists(), C4ConfigGeneral::ModsDataPath, PATH_IncludingSubdirectories, PATH_PreferredInstallationLocation, C4ConfigGeneral::SystemDataPath, and C4ConfigGeneral::UserDataPath.
Referenced by C4Application::DoInit().
| bool C4Reloc::LocateItem | ( | const char * | filename, |
| StdStrBuf & | str | ||
| ) | const |
Definition at line 174 of file C4Reloc.cpp.
References StdStrBuf::Copy(), DirSep, StdStrBuf::getData(), IsGlobalPath(), and ItemExists().
Referenced by C4ControlJoinPlayer::C4ControlJoinPlayer(), and C4Network2Res::SetByFile().
| bool C4Reloc::Open | ( | C4Group & | group, |
| const char * | filename | ||
| ) | const |
Definition at line 156 of file C4Reloc.cpp.
References DirSep, IsGlobalPath(), and C4Group::Open().
Referenced by C4Application::DoInit(), C4SoundSystem::Init(), C4LoaderScreen::Init(), C4Game::InitMaterialTexture(), C4Player::Load(), C4DefList::Load(), C4GameResList::LoadFoldersWithLocalDefs(), C4PlayerInfo::LoadFromLocalFile(), C4Game::OpenScenario(), C4GraphicsResource::RegisterGlobalGraphics(), C4GroupSet::RegisterParentFolders(), and C4Network2Res::SetByFile().