mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
The JNI global references are limited in count and we overflow it for games with a huge number of files (like Zork Nemesis). Instead, track all the nodes from Java side using a unique identifier generated using an atomic counter. Then, all JNI calls either use a temporary local reference to access node data or use the unique identifier.