Skip to content

Commit

Permalink
v0.6f
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoti committed Nov 3, 2016
1 parent 953e9cc commit 1dec9cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ int main(int argc, char *argv[])
{
int i = 0;
int paranoid = 0;
char idps_buffer[32];
char idps_buffer[16];
unsigned char idps_text_char_tmp[1];
unsigned char idps_text_char_1st[1];
unsigned char idps_text_char_2nd[1];
Expand All @@ -76,7 +76,7 @@ int main(int argc, char *argv[])

psvDebugScreenInit();
psvDebugScreenClear(0);
printf("PSV IDPS Dumper v%i.%i by Yoti\nbased on VitaCID by Major_Tom\n\n", VER_MAJOR, VER_MINOR);
printf("PSV IDPS Dumper v%i.%if by Yoti\nbased on VitaCID by Major_Tom\n\n", VER_MAJOR, VER_MINOR);

_vshSblAimgrGetConsoleId(idps_buffer);

Expand Down Expand Up @@ -259,15 +259,15 @@ int main(int argc, char *argv[])

// 1st half of byte
if (idps_text_char_1st[1] < 0xA) // digit
sprintf(idps_text_buffer, "%s%02X", idps_text_buffer, idps_text_char_1st[1]+0x30);
sprintf(idps_text_buffer, "%s%c", idps_text_buffer, idps_text_char_1st[1]+0x30);
else // char
sprintf(idps_text_buffer, "%s%02X", idps_text_buffer, idps_text_char_1st[1]+0x37);
sprintf(idps_text_buffer, "%s%c", idps_text_buffer, idps_text_char_1st[1]+0x37);

// 2nd half of byte
if (idps_text_char_2nd[1] < 0xA) // digit
sprintf(idps_text_buffer, "%s%02X", idps_text_buffer, idps_text_char_2nd[1]+0x30);
sprintf(idps_text_buffer, "%s%c", idps_text_buffer, idps_text_char_2nd[1]+0x30);
else // char
sprintf(idps_text_buffer, "%s%02X", idps_text_buffer, idps_text_char_2nd[1]+0x37);
sprintf(idps_text_buffer, "%s%c", idps_text_buffer, idps_text_char_2nd[1]+0x37);
}
WriteFile("ux0:data/idps.txt", idps_text_buffer, 32);

Expand Down
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
TITLE_ID = YPID00001
TARGET = PSV_IDPS_Dumper_v0.6
TARGET = PSV_IDPS_Dumper_v0.6f
OBJS = main.o graphics.o font.o

LIBS = -lSceKernel_stub -lSceVshBridge_stub -lSceDisplay_stub -lSceCtrl_stub
Expand Down

0 comments on commit 1dec9cc

Please sign in to comment.