Playdate SDK 1.12.3 on Windows 10 (fully updated)___
I'm compiling and running the Single File Examples - file example.
As soon as I try to run it in the simulator it crashes:
The file that the example tries to create is created:
The app only crashes when it tries to read the file.
If I open the source code and remove or uncomment these lines:
repeat l = file:readline() print(l) if l then print(l:match("(%d+)", 1) + l:match("(%d+)", 2)) end print() until l == nil
the app no longer crashes (but it doesn't produce the expected output - naturally)
If I then add back in just the
l = file:readline() line it crashes again.
On the actual console it looks like this (single images as animation was too large to upload):
Also on the device the file is created correctly: