Repository navigation
Show playtime by original game and recomp - #251
Merged
Merged
Conversation
Xarishark
marked this pull request as draft
November 16, 2026 19:57
Collaborator
|
Was a draft until the backend was ready. It's live now, so this is ready for review. Added on top of the original commit:
Tested on Windows with two portable launchers against the fake site: sign-in send, a real session, two PCs adding up, uninstall plus resend (no double count), and the fallback when the site refuses the call. cargo test 623 passed, node tests 275 passed. |
Reinstalling now adds the kept time to whatever the record already has instead of replacing it, and a renamed project takes the history kept under its old id.
tools/fake-play-site.cjs signs a launcher in to a fake account and answers the playtime calls as recomplauncher.com does, passing everything else through to the real site. --no-play answers them the way a site without them does.
Signed in, each PC sends its own time per game to recomplauncher.com (everything after signing in and once a day, one game after each session) and game pages show the totals over all the account's PCs. Signed out, or when the site can't say, it's this PC's own numbers. These calls never sign the PC out and rest on their own.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This covers local playtime for #210. Cross-device sync and community statistics remain open.
Verification