Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
Merge upstream changes, make things ready for 0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
joel16 committed Feb 10, 2017
1 parent db6da6d commit ef6b899
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 5 deletions.
39 changes: 38 additions & 1 deletion src/kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,41 @@ const char * getBoard()
return "DOL-1001";
else
return "Uknown";
}
}

/*
const char * getSysrootKernelModes(int data)
{
if (data == 0) //ksceSysrootIsExternalBootMode
{
if (ksceSysrootIsExternalBootMode() == 0)
return "boot mode enabled";
else
return "boot mode disabled";
}
else if (data == 1) //ksceSysrootIsManufacturingMode
{
if (ksceSysrootIsManufacturingMode() == 0)
return "manufacturing mode enabled";
else
return "manufacturing mode disabled";
}
else if (data == 2) //ksceSysrootIsSafeMode
{
if (ksceSysrootIsSafeMode() == 0)
return "safe mode enabled";
else
return "safe mode disabled";
}
else //ksceSysrootIsUpdateMode
{
if (ksceSysrootIsUpdateMode() == 0)
return "update mode enabled";
else
return "update mode disabled";
}
}*/
6 changes: 6 additions & 0 deletions src/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ int vshSblAimgrIsGenuineDolce();
int vshSblAimgrIsTest();
int vshSblAimgrIsTool();

/*int ksceSysrootIsExternalBootMode();
int ksceSysrootIsManufacturingMode();
int ksceSysrootIsSafeMode();
int ksceSysrootIsUpdateMode();*/

int vshSysconIsIduMode();
int vshSysconIsShowMode();
int vshSysconHasWWAN();
Expand All @@ -43,5 +48,6 @@ SceKernelOpenPsId getPSID();
char * getUnit();
const char * getDeviceModel();
const char * getBoard();
const char * getSysrootKernelModes(int data);

#endif
8 changes: 5 additions & 3 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ int main(int argc, char *argv[])
initNet();
psvDebugScreenInit();

printStr(false, GREEN, "", "VITAident 0.7.1\n\n");
printStr(false, GREEN, "", "VITAident 0.7\n\n");


/*Kernel Info*/

printStr(true, RED, "Firmware version: ", "%s\n", getFwVersion(false));

printStr(true, RED, "System version: ", "%.4s\n", getFwVersion(true));
printStr(true, RED, "System version: ", "%s\n", getFwVersion(true));

printStr(true, RED, "Model version: ", "%s %s (0x%08X)\n", getDeviceModel(), vshSysconHasWWAN()? "3G" : "WiFi", getModel());

Expand Down Expand Up @@ -75,7 +75,9 @@ int main(int argc, char *argv[])
printStr(false, BLUE, "(cycle count: ", "%s", getBatteryCycleCount());
printStr(false, BLUE, ")\n", "");

printStr(true, BLUE, "Udcd state: ", "%s (%s)\n\n", getUdcdCableState(), getUdcdChargingState());
printStr(true, BLUE, "Udcd state: ", "%s", getUdcdCableState());
printStr(false, BLUE, "(", "%s", getUdcdChargingState());
printStr(false, BLUE, ")\n\n", "");
}


Expand Down
2 changes: 1 addition & 1 deletion src/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ char * getUdcdCableState()
if (state.cable & SCE_UDCD_STATUS_CABLE_CONNECTED)
sprintf(udcdState, "Cable connected");
else if (state.cable & SCE_UDCD_STATUS_CABLE_DISCONNECTED)
sprintf(udcdState, "Cable disonnected");
sprintf(udcdState, "Cable disconnected");

return udcdState;
}
Expand Down

0 comments on commit ef6b899

Please sign in to comment.