Skip to content

Commit

Permalink
Fix control mapping saving/loading
Browse files Browse the repository at this point in the history
  • Loading branch information
skogaby committed Sep 10, 2015
1 parent a08e303 commit 49516bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vita/vita_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ static int LoadButtonConfig()
int nread = sceIoRead(file, &ActiveConfig, sizeof(struct ButtonConfig));
sceIoClose(file);

if (nread != 1)
if (nread <= 0)
{
InitButtonConfig();
return 0;
Expand Down Expand Up @@ -945,7 +945,7 @@ static int SaveButtonConfig()
int nwritten = sceIoWrite(file, &ActiveConfig, sizeof(struct ButtonConfig));
sceIoClose(file);

return (nwritten == 1);
return nwritten;
}

/* Load state icon */
Expand Down

0 comments on commit 49516bf

Please sign in to comment.