Rename Hyrule Magic compression functions; update deprecation notes

This commit is contained in:
scawful
2024-12-31 18:20:18 -05:00
parent fd102a5d3c
commit 308eb4b287
4 changed files with 323 additions and 325 deletions

View File

@@ -542,8 +542,10 @@ absl::Status Overworld::SaveOverworldMaps() {
std::vector<uint8_t> a, b;
int size_a, size_b;
// Compress single_map_1 and single_map_2
auto a_char = gfx::lc_lz2::Compress(single_map_1.data(), 256, &size_a, 1);
auto b_char = gfx::lc_lz2::Compress(single_map_2.data(), 256, &size_b, 1);
auto a_char =
gfx::HyruleMagicCompress(single_map_1.data(), 256, &size_a, 1);
auto b_char =
gfx::HyruleMagicCompress(single_map_2.data(), 256, &size_b, 1);
if (a_char == nullptr || b_char == nullptr) {
return absl::AbortedError("Error compressing map gfx.");
}