Skip to content

Fix playtime tick not being always called#349

Merged
Detanup01 merged 2 commits intoDetanup01:devfrom
NotAndreh:playtime-fix
Sep 12, 2025
Merged

Fix playtime tick not being always called#349
Detanup01 merged 2 commits intoDetanup01:devfrom
NotAndreh:playtime-fix

Conversation

@NotAndreh
Copy link
Copy Markdown
Contributor

I noticed that in some games the tick function of the playtime counter doesn't always get called, moving the function outside of the if statement resolved the issue while still making the function call happen once every 300ms
A game that had that problem was Hollow Knight

@NotAndreh NotAndreh marked this pull request as draft September 7, 2025 13:40
@NotAndreh
Copy link
Copy Markdown
Contributor Author

Fixed another bug in the load function, the isdigit check in the if statement was giving problems in case of null terminators. The try catch still catches eventual errors while parsing the number

@NotAndreh NotAndreh marked this pull request as ready for review September 7, 2025 14:11
@Detanup01 Detanup01 merged commit 81187a9 into Detanup01:dev Sep 12, 2025
64 checks passed
@NotAndreh NotAndreh deleted the playtime-fix branch September 12, 2025 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants