File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed
Metro/Metro_RP2350_Match3/match3_game Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change 2626import adafruit_sdcard
2727import msgpack
2828import storage
29- from match3_game_helpers import (
30- Match3Game ,
31- STATE_GAMEOVER ,
32- STATE_PLAYING_SETCALLED ,
33- GameOverException ,
34- )
29+ try :
30+ from match3_game_helpers import (
31+ Match3Game ,
32+ STATE_GAMEOVER ,
33+ STATE_PLAYING_SETCALLED ,
34+ GameOverException ,
35+ )
36+ except ImportError :
37+ # Needed for Fruit Jam OS if "Play again" is selected at end of game
38+ os .chdir ('/apps/Metro_RP2350_Match3' )
39+ from match3_game_helpers import (
40+ Match3Game ,
41+ STATE_GAMEOVER ,
42+ STATE_PLAYING_SETCALLED ,
43+ GameOverException ,
44+ )
3545
3646original_autoreload_val = supervisor .runtime .autoreload
3747supervisor .runtime .autoreload = False
You can’t perform that action at this time.
0 commit comments