gameWillResume not being called after using System Menu?

I have 3 custom System Menu items. When the System Menu is closed, I need to check all 3 of them and process their state.

(The individual callbacks for the 3 items are empty functions—they serve no purpose in isolation, and must be processed together.)

The docs make it sound like playdate.gameWillResume() is the place to do this.

But it never gets called—why might that be?

function playdate.gameWillResume()
	print("Processing menu items")
end

I enter the menu, change some of my custom items, exit... but playdate.gameWillResume is never called. (No errors either.)

TIA!

Fixed it! A redundant playdate.gameWillResume was defined elsewhere in the project!

1 Like