mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-05-02 11:25:46 +00:00
no way this was working before, and if it did, just pure luck, unsafe blind copy of bytes as is and zero checks. i only tested tomodachi, but should fix all games that were crashing on saving screenshots the crash was happening because the screenshot buffer was bigger than the bitmap buffer, so marshall.copy() was raising an unhandhled expection crashing the emu. on top of this, because the data was just copied as is, the result image was garbled. [fixes #304](https://github.com/Ryubing/Issues/issues/304) Reviewed-on: https://git.ryujinx.app/projects/Ryubing/pulls/18