[5.978] [Macos] file_rewind(0) not working as expected in @serialize block
Hi all,
I've encountered this problem today when trying to implement retro-compatibility on a JSFX. Not totally sure if it's a bug or if I'm doing something wrong (or illegal).
Calling file_rewind(0) when reading from the @serialize block seems to have no effect although it should rewind to the beginning of the memory block of the JSFX.
Platform: Reaper 5.978 / MacOS Mojave
I have attached a script that reproduces this bug. Steps to reproduce :
- Install script
- Create new project
- Create new track
- Add FX
- Save
- Close Reaper
- Relaunch reaper
- Open FX on track, edit it, inspect the debugger
- The try_0, try_1, try_2 vars should be equal to 0 since we rewind the file between each read, but their values are 0,1,2 as if file_rewind(0) had no effect.
Thanks!
Ben
|