Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

psvimg-create creates a char[] of 0x00's instead of 0x72's #11

Open
LiEnby opened this issue Oct 7, 2019 · 0 comments
Open

psvimg-create creates a char[] of 0x00's instead of 0x72's #11

LiEnby opened this issue Oct 7, 2019 · 0 comments

Comments

@LiEnby
Copy link

LiEnby commented Oct 7, 2019

in the struct

typedef struct PsvImgHeader {
  uint64_t  systime;
  uint64_t  flags;
  SceIoStat stat;
  char      path_parent[256];
  uint32_t  unk_16C; // set to 1
  char      path_rel[256];
  char      unused[904];
  char      end[12];
} __attribute__((packed)) PsvImgHeader_t;

the path_rel[256]; and path_parent[256]; should be the string, followed by 0x00 terminator, and then the rest of the array being 'x' (0x72) however when psvimg-create runs it writes 0x00's

example:
This is a file written by PSVita Content Mannager:
image
and then another file written by psvimg-create
image

CMA puts 0x72 but psvimg-create does not
ulthough it seems the vita doesnt care when restoring, sony could easily make a check and break everything using psvimgtools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant