#include <fspp.h>
Definition at line 32 of file fspp.h.
◆ SearchPathMapDir
◆ SearchPathMapVPK
◆ FileSystem()
| FileSystem::FileSystem |
( |
std::string_view | gamePath, |
|
|
const FileSystemOptions & | options = {} ) |
|
explicitprotected |
◆ getSearchPathDirs() [1/2]
◆ getSearchPathDirs() [2/2]
◆ getSearchPathVPKs() [1/2]
◆ getSearchPathVPKs() [2/2]
◆ load() [1/2]
Creates a FileSystem based on a local installation.
- Parameters
-
| gamePath | The full path to the directory where gameinfo.txt is located (e.g. "path/to/portal2") |
| options | FileSystem creation options |
- Returns
- The created FileSystem if gameinfo.txt is found
Definition at line 35 of file fspp.cpp.
◆ load() [2/2]
Creates a FileSystem based on a Steam installation.
- Parameters
-
| appID | The AppID of the base game |
| gameID | The name of the directory where gameinfo.txt is located (e.g. "portal2") |
| options | FileSystem creation options |
- Returns
- The created FileSystem if the specified Steam game is installed
Definition at line 27 of file fspp.cpp.
◆ read()
| std::optional< std::vector< std::byte > > FileSystem::read |
( |
std::string_view | filePath, |
|
|
std::string_view | searchPath = "GAME", |
|
|
bool | prioritizeVPKs = true ) const |
|
nodiscard |
◆ readForMap()
| std::optional< std::vector< std::byte > > FileSystem::readForMap |
( |
const vpkpp::PackFile * | map, |
|
|
std::string_view | filePath, |
|
|
std::string_view | searchPath = "GAME", |
|
|
bool | prioritizeVPKs = true ) const |
|
nodiscard |
The documentation for this class was generated from the following files: