int result = sceUtilitySavedataInitStart(&savedata);
if (result)
printf("sceUtilitySavedataInitStart failed: %i\n", result);
/* Wait for sceUtilitySavedataInitStart() to complete. */
while (1)
{
result = sceUtilitySavedataGetStatus();
if (result == 3)
break;
sceUtilitySavedataUpdate(1);
sceDisplayWaitVblankStart();
}
sceUtilitySavedataGetStatus always returns 0.
Any idea ?
You've made a mistake in the error checking for the sceUtilitySavedataInitStart call. Your condition is in fact if (result != 0), and as 0 means succcess and < 0 means error, this will result in it marking it as succesful while it actually errored (and vice versa). Thus, it's obvious that the status never proceeds, because it was never initialized. This is probably because of the structure being invalid, if you post it I could have a look at it. ;)
Last edited by Bubbletune on Tue May 26, 2009 1:43 am, edited 2 times in total.