Open ginger-mochi opened 2 years ago
I did try this: playdate.apiVersion()
returns 11000 as the API version even on an 1.11 simulator, though? (Note that 1.9.3 simulator returns 10900
, so it looks like it only changes for breaking changes?)
you can use playdate.systemInfo.sdk
which returns a string with exact version.
You could consider checking
playdate.apiVersion()
and then setting the values ingWifiApi
/EnableWifiApiMacOSSimulator
accordingly. This might help improve the stability ofmain.c
should the code be updated when firmware v 1.12 come out, and also it will enable any apps made with this library to gracefully fail if the firmware version updates. It will also ensure that v 1.11.0 firmware continues to be supported by this library in the future.To ensure API consistency should the
pd_api.h
header change, you may wish to change the declaration of thePlaydateAPIExt
struct like so: