Skip to content

Conversation

@snowyegret23
Copy link
Contributor

Summary

  • Keep UnityFS "none" save flags aligned with UnityFS expectations.
  • Ensure block_info_flag only carries compression bits.
  • Mask block flags written into block info.

Changes

  • Use 0x40, 0 for UnityFS none save.
  • Cast and mask data_flag / block_info_flag.
  • Mask block_flag when writing block info.

Rationale

These changes preserve bundle structure flags and prevent invalid block flags that can make saved bundles fail to load on subsequent reads.

 ## Summary
  - Keep UnityFS "none" save flags aligned with UnityFS expectations.
  - Ensure block_info_flag only carries compression bits.
  - Mask block flags written into block info.

  ## Changes
  - Use `0x40, 0` for UnityFS none save.
  - Cast and mask `data_flag` / `block_info_flag`.
  - Mask `block_flag` when writing block info.

  ## Rationale
  These changes preserve bundle structure flags and prevent invalid block flags that can make saved bundles fail to load on subsequent reads.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant