MCPcopy Create free account
hub / github.com/Scobalula/Greyhound / CascFileSystem

Method CascFileSystem

src/WraithXCOD/WraithXCOD/CascFileSystem.cpp:6–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include "CascLib.h"
5
6CascFileSystem::CascFileSystem(const std::string& directory)
7{
8 StorageHandle = NULL;
9
10 auto asWStr = Strings::ToUnicodeString(directory);
11
12 if (!CascOpenStorage(asWStr.c_str(), CASC_LOCALE_NONE, &StorageHandle))
13 {
14 LastErrorCode = GetCascError();
15 }
16 else
17 {
18 LastErrorCode = 0;
19 }
20}
21
22CascFileSystem::~CascFileSystem()
23{

Callers

nothing calls this directly

Calls 2

CascOpenStorageFunction · 0.85
GetCascErrorFunction · 0.85

Tested by

no test coverage detected