MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / LoadCache

Method LoadCache

Source/Editor/Cooker/Platform/Web/WebPlatformTools.cpp:99–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void WebPlatformTools::LoadCache(CookingData& data, IBuildCache* cache, const Span<byte>& bytes)
100{
101 const auto platformSettings = WebPlatformSettings::Get();
102 bool invalidTextures = true;
103 if (bytes.Length() == sizeof(WebPlatformCache))
104 {
105 auto* platformCache = (WebPlatformCache*)bytes.Get();
106 invalidTextures = platformCache->TexturesCompression != platformSettings->TexturesCompression;
107 }
108 if (invalidTextures)
109 {
110 LOG(Info, "{0} option has been modified.", TEXT("TexturesQuality"));
111 cache->InvalidateCacheTextures();
112 }
113}
114
115Array<byte> WebPlatformTools::SaveCache(CookingData& data, IBuildCache* cache)
116{

Callers 1

LoadMethod · 0.45

Calls 4

GetFunction · 0.50
LengthMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected