MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / Scan

Method Scan

src/openrct2/AssetPackManager.cpp:67–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 }
66
67 void AssetPackManager::Scan()
68 {
69 ClearAssetPacks();
70
71 auto context = GetContext();
72 auto& env = context->GetPlatformEnvironment();
73
74 auto openrct2Dir = fs::u8path(env.GetDirectoryPath(DirBase::openrct2, DirId::assetPacks));
75 Scan(openrct2Dir);
76
77 auto userDirectory = fs::u8path(env.GetDirectoryPath(DirBase::user, DirId::assetPacks));
78 Path::CreateDirectory(userDirectory.u8string());
79 Scan(userDirectory);
80 }
81
82 void AssetPackManager::Scan(const fs::path& directory)
83 {

Callers 1

Calls 5

GetContextFunction · 0.85
ScanFunction · 0.85
CreateDirectoryFunction · 0.85
endsWithFunction · 0.85
GetDirectoryPathMethod · 0.80

Tested by

no test coverage detected