PabloMK7 / citra

A Nintendo 3DS Emulator
GNU General Public License v2.0
3.74k stars 636 forks source link

Add setting to provide a user-defined value in PTM:GetStepHistory #208

Closed szdarkhack closed 3 months ago

szdarkhack commented 4 months ago

Is there an existing issue for this?

What feature are you suggesting?

A setting (probably in the system section?) could be added to set the number of steps that the PTM:GetStepHistory call returns per hour (currently stubbed at 0). It may be a good idea to make this configurable per-game.

Why would this feature be useful?

There are a number of games that have interactions with the 3DS's pedometer, a major example being Pokemon XY and ORAS, where the recharge rate for O-Powers is made faster the more steps recorded during the last 24h (capping at 4000). This proposed solution is of course not perfect as it can only return the same number of steps every hour, however it should allow users to take advantage of that feature in some games at least, while for problematic games it can be brought back to 0, maintaining the current behavior.