Help saving file
Help saving file
How can I save a file to the memory stick of a psp such as a highscore list, or savegame?
I typically save to the local folder or subfolder that contain the executable.
I'm sure there is a way to write to the correct save floder but I have never bothered as i was under the impression these saves were restricted in some way.
Otherwise wait for someone else to reply, I'm sure you'll get your answer.
I'm sure there is a way to write to the correct save floder but I have never bothered as i was under the impression these saves were restricted in some way.
Otherwise wait for someone else to reply, I'm sure you'll get your answer.
saving there is possible with normal function, but if you want to save like an ufficial game you need to use the psputility library and precisely this:
psputility_savedata.h you can also found an example samples\savedata\utility note this will work only on 1.5 and 1.0.
you'll need to use samples\savedata\decrypt and samples\savedata\encrypt with 2.0
psputility_savedata.h you can also found an example samples\savedata\utility note this will work only on 1.5 and 1.0.
you'll need to use samples\savedata\decrypt and samples\savedata\encrypt with 2.0
People have noticed that using sceIoRead and sceIoWrite are faster then the standard C functions.ipsp wrote:I have always just used the standard 'C' file functions and they work.
Note sure if this is the solution you want though
Not sure where the topic was, but I know it was on this forum. The speed difference was pretty unbelievable.
can't make it work
sorry bout this. really new in using savedata utility. I can't seem to make this work. when i use the sdk sample it just crashes after pressing either circle or cross. it doesn't seem to create any savedata in psp/savedata folder. im using 1.5 in 3.03oe-c.weltall wrote:saving there is possible with normal function, but if you want to save like an ufficial game you need to use the psputility library and precisely this:
psputility_savedata.h you can also found an example samples\savedata\utility note this will work only on 1.5 and 1.0.
you'll need to use samples\savedata\decrypt and samples\savedata\encrypt with 2.0
This is because of newlib caches access to read/writesGary13579 wrote:People have noticed that using sceIoRead and sceIoWrite are faster then the standard C functions.ipsp wrote:I have always just used the standard 'C' file functions and they work.
Note sure if this is the solution you want though
Not sure where the topic was, but I know it was on this forum. The speed difference was pretty unbelievable.
as for saving files any C/C++ book covers how to use
the stdlib io functions ...just make sure to always clear and THEN
delete the file descriptor that is used in your files and also there is a file
limit of i think 9 files concurrently, so keep this in mind
10011011 00101010 11010111 10001001 10111010