Repository navigation
Conversation
…date state onto Roaming Titles previously lived in a title_ids.json sidecar and, in the last build, as spawn-shaped title swaps the Restore path never cleared — so restored titles kept coming back, and a spawned title only appeared after a match re-downloaded the inventory. - Move spawned titles into a `spawned_titles` list in the spoof config, saved like name_spoof. spawned_title_ids() = spawned_titles + title-swap equip ids, so swaps still resolve. - Push newly spawned titles into the running game via inject_title_reward_drop (Reward/RewardResult frame), same as items, so they show up immediately. - Despawn and Restore All now remove titles; Restore All clears them first so a missing game dir can't skip it, counts them in its summary, and title rows render even before a game dir is set. - One-time migration folds title_ids.json and spawn-shaped title swaps into spawned_titles. - Consolidate swaps.json onto the two Roaming dirs: canonical_swaps_paths() is Roaming-only and cleanup_stale_state_files() folds stale LOCALAPPDATA and bare-%APPDATA%\VelocityRL copies into the canonical files at startup, then deletes them (never the webview cache or the Tauri dir). This stops restored items resurrecting from stale fallback copies. - Queue a backup-list refresh instead of dropping it when one is already running, so the Restore list isn't left stale right after a restore.
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
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.
What
Fixes the two title bugs from the last build and cleans up where state lives.
Titles
spawned_titleslist in the spoof config, saved likename_spoof(no moretitle_ids.jsonsidecar, no more spawn-shaped title swaps).spawned_title_ids()=spawned_titles+ each title-swapequip_title_id, so swaps still resolve.inject_title_reward_drop(Reward/RewardResult frame), same as items — they appear immediately instead of only after a match.title_ids.jsonand spawn-shaped title swaps intospawned_titles.Restore
State consolidation
canonical_swaps_paths()is Roaming-only.cleanup_stale_state_files()runs once at startup, folds staleswaps.json/title_ids.jsonfrom%LOCALAPPDATA%and bare%APPDATA%\VelocityRL\into the canonical Roaming files, then deletes those stale copies. Never touches the webview cache or the Tauri dir.Not verified
cargo check --releaseandcargo test. UI passednode --check.test_emulate_unboxing_pipeline_and_garage_series_filter_safety(a test race) is unrelated to this branch and already red on main.