Fix v1.2
This commit is contained in:
parent
8bfc5cb9be
commit
b474291ec6
|
@ -228,9 +228,6 @@ void sceNpTrophySetupDialogParamInit(SceNpTrophySetupDialogParam* param)
|
||||||
|
|
||||||
int setSecureTick(unsigned long long int psTime)
|
int setSecureTick(unsigned long long int psTime)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SceRtcTick utcTime = {0};
|
SceRtcTick utcTime = {0};
|
||||||
SceRtcTick localTime = {0};
|
SceRtcTick localTime = {0};
|
||||||
|
|
||||||
|
@ -333,7 +330,7 @@ start:
|
||||||
printf("\e[%i;%iH%s", SCREEN_ROW, CENTERX(buf), buf);
|
printf("\e[%i;%iH%s", SCREEN_ROW, CENTERX(buf), buf);
|
||||||
memset(&pad, 0, sizeof(pad));
|
memset(&pad, 0, sizeof(pad));
|
||||||
sceCtrlPeekBufferPositive(0, &pad, 1);
|
sceCtrlPeekBufferPositive(0, &pad, 1);
|
||||||
|
|
||||||
if (pad.buttons == SCE_CTRL_UP)
|
if (pad.buttons == SCE_CTRL_UP)
|
||||||
{
|
{
|
||||||
if (selection <= size - WINDOW_HEIGHT){
|
if (selection <= size - WINDOW_HEIGHT){
|
||||||
|
@ -683,7 +680,7 @@ TrophyMenu:
|
||||||
//set options
|
//set options
|
||||||
strcpy(option_list[0].path, "Unlock a Trophy");
|
strcpy(option_list[0].path, "Unlock a Trophy");
|
||||||
strcpy(option_list[1].path, "Unlock All Trophys");
|
strcpy(option_list[1].path, "Unlock All Trophys");
|
||||||
strcpy(option_list[3].path, "Exit");
|
strcpy(option_list[2].path, "Exit");
|
||||||
|
|
||||||
while(1)
|
while(1)
|
||||||
{
|
{
|
||||||
|
@ -1178,13 +1175,12 @@ selectTrophyMenu:
|
||||||
|
|
||||||
if(pad.buttons == SCE_CTRL_CROSS)
|
if(pad.buttons == SCE_CTRL_CROSS)
|
||||||
{
|
{
|
||||||
psvDebugScreenClear();
|
psvDebugScreenClear();
|
||||||
|
|
||||||
printf("Unlocking trophy %i\n",selection);
|
printf("Unlocking trophy %i\n",selection);
|
||||||
SceNpTrophyId id = selection;
|
SceNpTrophyId id = selection;
|
||||||
SceNpTrophyId platid;
|
SceNpTrophyId platid;
|
||||||
FakeTimes(1);
|
FakeTimes(1);
|
||||||
ret = setSecureTick(fakeTime.tick);
|
setSecureTick(fakeTime.tick);
|
||||||
ret = sceNpTrophyUnlockTrophy(trophyContext,handle,id,&platid);
|
ret = sceNpTrophyUnlockTrophy(trophyContext,handle,id,&platid);
|
||||||
if(ret < 0){
|
if(ret < 0){
|
||||||
if(ret == 0x8055160f)
|
if(ret == 0x8055160f)
|
||||||
|
@ -1235,7 +1231,6 @@ selectTrophyMenu:
|
||||||
|
|
||||||
else if(selection == 1)
|
else if(selection == 1)
|
||||||
{
|
{
|
||||||
|
|
||||||
psvDebugScreenClear(); //clear screen
|
psvDebugScreenClear(); //clear screen
|
||||||
SceNpTrophyId id = 0;
|
SceNpTrophyId id = 0;
|
||||||
SceNpTrophyId platid;
|
SceNpTrophyId platid;
|
||||||
|
|
Loading…
Reference in New Issue