Repository navigation
Copy saves between Mac and iPhone over the cable - #19
Merged
Merged
Conversation
The comparison and the copy plan live in Python so they can be tested with fake devicectl listings: only portal2/SAVE/<id>/*.sav and *.tga, three-way comparison against the last recorded sync, never overwriting a newer or doubly changed file without --force, backups before any overwrite, and pulled files moved into place only once complete, with the iPhone's date so the game keeps its save order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thin devicectl layer around tools/save_sync.py: one timestamped listing, the planned copies, then a fresh listing so only the copies that landed are recorded, even when a copy fails midway. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Explains what is copied and what stays per device (cfg, video modes), how conflicts and backups work, why it never competes with Steam Cloud, and that an iCloud version would need a paid developer account. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # STATUS.md
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.
Copy saves between the Mac and the iPhone over the cable:
tools/ios_device.sh saves status|pull|push [--force] [--dry-run].portal2/SAVE/<id>/*.savand*.tga; device-specific cfg files are left alone.--force; anything overwritten is backed up first. Deletions are never synced.tools/save_sync.py, with 16 unit tests on fake devicectl listings.Not tested on a device yet: the date field of
devicectl device info filesis guessed (the tool stops with an error and keeps the listing if it cannot parse it).🤖 Generated with Claude Code