Xbox 360 Storage
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
- Set up a valid project title id
- Sign-in a user using X360Core.RequestSignIn
- Have that user select a storage device using X360Storage.SelectSaveGameStorageDeviceForUser
- Create and open a save game file using X360Storage.CreateSaveGame
- Write to the save game file using either X360Storage.WriteBuffer or X360Storage.WritePlayerPrefs
- Close the save game file using X360Storage.Unmount