This commit is contained in:
AtelierWindows\SilicaAndPina 2018-12-05 23:21:32 +13:00
parent 8bfc5cb9be
commit b474291ec6
1 changed files with 4 additions and 9 deletions

View File

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