mirror of
https://github.com/Dingo-Shenanigans/ReSkate.git
synced 2026-10-17 12:57:01 +02:00
Mod merge: a carried asset with no package fails alone
A carried asset whose install chunk no package names fails when it is carried, and is noted, as it was before it was written once; it no longer fails the whole merge when it settles.
This commit is contained in:
1 parent
b981813ec8
commit
5ef0e64e02
1 file changed
+2
@@ -91,6 +91,8 @@ CasStore CasStore::waiting() const {
|
||||
|
||||
fb::BundleFileInfo CasStore::carry(std::uint32_t installChunk, std::uint16_t archive, std::span<const std::byte> encoded) {
|
||||
if (!waiting_) throw std::logic_error("Only a waiting store carries payloads");
|
||||
// An install chunk no package names fails here, for this payload alone, and not when it settles.
|
||||
(void)archive_path(installChunk, archive);
|
||||
const std::pair key{installChunk, sha1_of(encoded)};
|
||||
const auto [found, fresh] = carriedIndex_.try_emplace(key, carried_.size());
|
||||
if (fresh) carried_.push_back({installChunk, archive, key.second, encoded, {}});
|
||||
|
||||
Reference in new issue
Block a user