| 97 | } |
| 98 | |
| 99 | void 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 | |
| 115 | Array<byte> WebPlatformTools::SaveCache(CookingData& data, IBuildCache* cache) |
| 116 | { |
no test coverage detected