XGameRuntime: a container's last-modified time follows its last update #1050
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1050
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@DavidM1911 on GitHub · 2026-11-24 10:53 UTC · original
DavidM1911:gamesave-mtime→main· +58 −6 · 1 files · 1 commits · openeach_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
@futurepro62 on GitHub · 2026-11-24 14:24 UTC · original
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
@luckyteagirl on GitHub · 2026-11-25 03:19 UTC · original
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.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.