eden-nx2-old/src/frontend_common
Repository files (latest commit first)
Filename Latest commit message Latest commit date
PavelBARABANOV 58968bd127
[core] Support block-compressed NSZ and XCZ (#4552)
- [x] I have read and followed the [Contribution Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/CONTRIBUTING.md#code-contributions).
- [x] I have read and followed the [AI Policy](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/AI.md).
- [x] I have read and followed the [Coding Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/Coding.md) to the best of my ability.

-------------------
- Add NCZBLOCK (nsz -B / .xcz) reader: each read decodes only the covered blocks and re-encrypts CTR sections, no disk output.
- Allow installing solid .nsz to NAND via DecompressNCZForInstall (lazy, incremental decode with frontier, O(n) instead of O(n^2)).
- Accept BKTR updates with thousands of sections (MaxSectionCount = 0x10000).
- Wire .nsz/.xcz into loader, registered cache, scanner, and NAND install (content_manager.h), and reject solid NCZ from the game list.
- Bump the pinned zstd to 33618c8 in cpmfile.json, which includes the upstream AArch64 revert ([33618c89](33618c89e5)) for a ZSTD_decodeSequence branch optimization that could corrupt data on ARM64; without it, solid NCZ decoding on Android fails with "Data corruption detected".

NCZ format and CTR counter semantics follow the reference nsz tool and its
Rust port:
- https://github.com/nicoboss/nsz (Decompressor.py, BlockDecompressorReader.py)
- https://docs.rs/nsz-rs/0.3.0/src/nsz_rs/decompress.rs.html

The last-block edge case (decompressed size is an exact multiple of block
size) is handled as described in https://github.com/nicoboss/nsz/issues/210

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4552
Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
Reviewed-by: Shinmegumi <shinmegumi@eden-emu.dev>
2026-10-26 17:23:18 +01:00
..
CMakeLists.txt [cmake, deps] conjure common/httplib.h and remove global def for httplib macros (#3800) 2026-04-06 19:13:09 +02:00
config.cpp [settings] move program_args and debug_knobs back to debugging category and make them pergameable (#4378) 2026-09-08 20:05:56 +02:00
config.h [gamemode] Make available on other platforms (#353) 2025-12-07 07:13:43 +01:00
content_manager.h [core] Support block-compressed NSZ and XCZ (#4552) 2026-10-26 17:23:18 +01:00
data_manager.cpp [common] do not crash when don't have permissions to /tmp/eden directory due to unforessen circumstances (FreeBSD) (#3912) 2026-05-13 19:14:59 +02:00
data_manager.h [*] basic in-house cpp linting (#4039) 2026-06-04 05:49:07 +02:00
firmware_manager.cpp [*] basic in-house cpp linting (#4039) 2026-06-04 05:49:07 +02:00
firmware_manager.h [*] basic in-house cpp linting (#4039) 2026-06-04 05:49:07 +02:00
mod_manager.cpp [desktop] Prefer extracred folder name over zip name for non-Atmosphere zip mods (#4043) 2026-06-02 04:08:09 +02:00
mod_manager.h [*] basic in-house cpp linting (#4039) 2026-06-04 05:49:07 +02:00
play_time_manager.cpp [common/logging] Simplify logging logic and fix issues when logging before system is created (#3688) 2026-03-12 18:29:15 +01:00
play_time_manager.h [chore] Fixed a couple memory leaks using up ~15 MB each iteration (#398) 2025-12-26 02:55:52 +01:00
settings_generator.cpp [common] unify std::random_device (#3801) 2026-03-31 20:12:41 +02:00
settings_generator.h [frontend] Generate web token at runtime (#3462) 2026-02-04 04:16:39 +01:00
update_checker.cpp [frontend] Built-in auto updater (#3845) 2026-04-28 20:42:23 +02:00
update_checker.h [frontend] Built-in auto updater (#3845) 2026-04-28 20:42:23 +02:00