Savedata?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
floorball92
Posts: 30
Joined: Sat Apr 05, 2008 5:53 am
Location: Germany -> Hessen -> Hanau
Contact:

Savedata?

Post by floorball92 »

Hey,

I remember, that I haved read something in an Lib, that you can use it to work with savedatas, but firstly I' ve forgotton, which the name of it was and secondly, I'm interessted, if it' s confortable to work with it or is it more work the usefull??
Image
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

I'm not 100% sure on what you're asking, but there is the psputility_savedata.h header in the SDK and a sample under samples/savedata/utility.
floorball92
Posts: 30
Joined: Sat Apr 05, 2008 5:53 am
Location: Germany -> Hessen -> Hanau
Contact:

Post by floorball92 »

Yes, i found it, but there are only the prototypes:

int sceUtilitySavedataInitStart(SceUtilitySavedataParam * params);
int sceUtilitySavedataGetStatus(void);
int sceUtilitySavedataShutdownStart(void);
void sceUtilitySavedataUpdate(int unknown);

I don' t found the sample, can you please give me the path to it??

Thank you first!
Image
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

Insert_witty_name wrote:..sample under samples/savedata/utility.
floorball92
Posts: 30
Joined: Sat Apr 05, 2008 5:53 am
Location: Germany -> Hessen -> Hanau
Contact:

Post by floorball92 »

yes, but where lies this sample folder, because it isn' t in the root.
Image
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

Assuming you installed using the default... /usr/local/pspdev/psp/sdk/samples/savedata/utility/
floorball92
Posts: 30
Joined: Sat Apr 05, 2008 5:53 am
Location: Germany -> Hessen -> Hanau
Contact:

Post by floorball92 »

and like vever a sample that doesn' t work in my sdk. I think he has forgotten to initialize his savadata. Don' t know, I will try a bit with it and then answer.
Image
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

Ensure you have updated your SDK.

I changed the sample quite a lot fairly recently.
floorball92
Posts: 30
Joined: Sat Apr 05, 2008 5:53 am
Location: Germany -> Hessen -> Hanau
Contact:

Post by floorball92 »

OK, now it works.

In the sample there is the file data.h with the pictures in hex, should I make my Pictures with bin2c in Hex Code??
Image
Post Reply