Open fuglaro opened 1 year ago
Seems reasonable. My only issue is that regular hardware users will see that message HEYTHUMBY!LOAD:TinyBlocks
printed. Would be nice if it only occurred in the emulator. Would it be possible to only print that if running in the emulator? Like when the emulator
module exists?
Good point and that sounds great! I'll take a look at that soon. Thank you!
The stand-alone emulator previously used the same menu.py file that runs on the device, but manipulated the python code with some hot patches to be able to dynamically load all the games from the Arcade.
This change avoids this hot patching by making some minimal fallback behaviour in menu.py:
/Games/
, menu.py will load the list of games from a `/Games' file, which is provided by the standalone emulator.stat
on the game file errors, assume we are running in emulatton mode and ignore it.HEYTHUMBY!LOAD:TinyBlocks
There is also a related change in play.js that cleans up better when games end and it goes back to the menu. Previously, lots of hidden Editor widgets would be left open.
There should be no other behavioural changes with this update expect code that is less brittle to future changes.
Tests on the the following looked good to me: