XGameRuntime: a container's last-modified time follows its last update #1043
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1050"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T10:53:58Z.
each_containerreported the container folder's own mtime aslastModifiedTime. A folder's mtime only moves when an entry directly inside it is created, renamed or removed, and the container holds justb\anddisplay— so after the first save the reported time froze, and a slot saved again looked older than one saved once. It now reports the newest mtime among the container,b\,displayand the blobs.Fixes #1041
What is in it
gamesave.rs:mtime_secs()+container_modified();each_containeruses the max instead of the folder's own mtime.container_modified_reports_the_newest_blob_not_the_folder: blob and display mtimes set into the future viaFile::set_modified; the reported time follows the newest of them.Tested
cargo test -p xcl --lib gamesave: 11 passed, 0 failedcargo test --workspace -- --test-threads=4: 677 passed, 0 failed, 41 ignoredRegression run
main
a6f5f7a(NVIDIA GeForce RTX 3060 Ti, , 60 s):this PR's head
c423c78(same title/GPU/seconds):Not tested
AI use
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T14:24:55Z.
Full-suite run, since this PR has no test report yet. Tested exact head
c423c78(on its basea6f5f7a).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 677 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.container_modified_reports_the_newest_blob_not_the_folder.Not tested
AI use
Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-25T03:19:47Z.
Tested
c423c78d47449091373b0781edbac58ec9a730f2on Windows 11 build 26200, Ryzen 9 5980HX, Rust 1.99.0 MSVC. This is a filesystem and GameSave test; it did not exercise the RX 6800M GPU.cargo test --locked -p xcl --lib -j 2 hle::xgameruntime::gamesave:: -- --test-threads=1 --show-output: 11 passed, 0 failed, 0 ignored, no explicit skips.container_modified_reports_the_newest_blob_not_the_folderpassed: a newer display write and then a newer blob write each determined the container modification time, rather than the folder timestamp.cargo build --locked --workspace -j 2: passed.Not tested
AI use
OpenAI Codex (GPT-6, exact variant not exposed in this session) reviewed the exact diff, ran the GameSave suite and build, checked the logs, and drafted this report.
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T08:01:37Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:41:49Z.
Triage (#1607) – head
c423c78No open or merged PR fixes #1041. Main still reports the container folder's own mtime in
each_container.No problems found in the diff. It reports the newest mtime of the folder,
b\,displayand the blobs, in seconds as before, and the test covers a blob and a display update. The PR conflicts with main.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.