Skip to content

Commit

Permalink
List active modes in run loop startup, verify attract is running
Browse files Browse the repository at this point in the history
  • Loading branch information
avanwinkle committed Jul 19, 2024
1 parent 563b613 commit 8df70d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mpf/core/machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,11 @@ def run(self) -> None:
if not self.initialize_mpf():
return

self.info_log("Starting the main run loop.")
self.info_log("Starting the main run loop with active modes: %s",
self.mode_controller.active_modes)
if not self.modes['attract'] in self.mode_controller.active_modes:
self.warning_log("Attract mode is not active, game will not be playable. "
"Please check your attract mode configuration.")
self._run_loop()

def stop_with_exception(self, exception) -> None:
Expand Down

0 comments on commit 8df70d9

Please sign in to comment.