Commit Graph
3 Commits
Author SHA1 Message Date
YaandxNITROx 84863c3a41 CLOUDSYNC: wait before loading CLI content (#19502)
Co-authored-by: xNITROx <[email protected]>
2026-10-09 08:16:11 +02:00
Rob Loach 9312a11000 cli: Add a --cloudsync command to sync the Cloud from the CLI (#19504) 2026-10-09 08:00:52 +02:00
libretroadmin 90d78c23b0 cloud sync: the unload sync starts once the save RAM is on disk
With Cloud Sync in automatic mode, closing content asks for a sync.
When content is running, CMD_EVENT_UNLOAD_CORE now only marks it
(RARCH_FLAGS_CLOUD_SYNC_ON_DEINIT), and retroarch_main_deinit_finish
pushes it: by then the content's save RAM has been flushed and no
core owns the save file, so the sync uploads and hashes the save the
content left behind, and may update it from the server. With no
content running the sync is pushed at once, as before. On the way out
the task queue has already been drained, so a sync marked there is
dropped, as one pushed before the drain was cancelled.

samples/runloop/cloudsync_unload links the shipping retroarch.c with
task_push_cloud_sync wrapped, loads a core with save RAM, closes the
content from a frame loop and checks what the save file held when the
sync was asked for. It runs in the menu harness workflow.
2026-10-03 01:50:55 +02:00