GLBasic forum

Main forum => GLBasic - en => Topic started by: Ozden79 on 2010-Jan-27

Title: IPhone game update, prevent data loss?
Post by: Ozden79 on 2010-Jan-27
Hello Guys,

Still not released his first game for IPhone :) but this is something that I read a lot on game reviews that updates are caused loss of current game progress, etc. so I want to prevent this from the beginning. As default to GLBasic, I use "Media" folder for all my data location. I'll create an ini file at there, which won't be available at first deployment, to keep the game progress, etc. Will this guarantee that my ini file will be still there when the user updates it's game or an update means completely deleting all folders of old installation and make a fresh one?

Would appreciate if somebody has any experience about this and gives a reply...

Ãâ€"zden
Title: Re: IPhone game update, prevent data loss?
Post by: Kitty Hello on 2010-Jan-28
You can't write to MEdia on the iPhone.
Write to PLATFORMINFO$("DOCUMENTS") and it will stay there even after an software update. iTunes will sync this directory, too IIRC.
Title: Re: IPhone game update, prevent data loss?
Post by: Ozden79 on 2010-Jan-28
Thank you, I'll follow that route...
Title: Re: IPhone game update, prevent data loss?
Post by: BdR on 2010-Mar-05
On the iphone, does the PLATFORMINFO$("DOCUMENTS") return a folder that is only accessible to the running glbasic app? Or do other apps also write into this folder, just like the "my documents" folder in windows?

And also, can you create subfolders in this documents-folder using CREATEDIR()? I don't have an iPhone (yet) so I was wondering.
Title: Re: IPhone game update, prevent data loss?
Post by: Ozden79 on 2010-Mar-06
I haven't tried folder creation but I can confirm that it's only allowed to reach the file who has created the file, other apps cannot.
Title: Re: IPhone game update, prevent data loss?
Post by: trucidare on 2010-Mar-06
DOCUMENTS on iPhone returns the Path to Sandbox directory of your game. every game has a tmp folder, a documents folder and the own .app folder.