Xbox 360 Storage

From Alpha Archive Wiki
Revision as of 21:40, 10 August 2020 by Gunz4Hire (talk | contribs) (Created page with "* Storage (saving and loading) works by mounting files on physical media (HDD and memory card) as virtual drives. Calling X360Storage.CreateSaveGame or X360SaveGame.Open will...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  • Storage (saving and loading) works by mounting files on physical media (HDD and memory card) as virtual drives. Calling X360Storage.CreateSaveGame or X360SaveGame.Open will mount the saved file as a drive at "mountName:" i.e. on success X360SaveGame.Open("save", onComplete) you will be able to access files inside the save via "save:\" Mounts should be unmounted using X360Storage.Unmount once they are not required anymore.

Game load/save checklist

  1. Set up a valid project title id
  2. Sign-in a user using X360Core.RequestSignIn
  3. Have that user select a storage device using X360Storage.SelectSaveGameStorageDeviceForUser
  4. Create and open a save game file using X360Storage.CreateSaveGame
  5. Write to the save game file using either X360Storage.WriteBuffer or X360Storage.WritePlayerPrefs
  6. Close the save game file using X360Storage.Unmount