Guest User

Untitled

a guest
Sep 27th, 2015
1,997
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. /* $(SCE_PS3_ROOT)\target\ppu\lib\libsysutil_np_trophy_stub.a */
  2.  
  3. #include <np.h>
  4.  
  5. int GetTrophyCount()
  6. {
  7.     SceNpTrophyGameDetails game_details;
  8.     sceNpTrophyGetGameInfo(1, 1, &game_details, NULL);
  9.     return game_details.numTrophies;
  10. }
  11.  
  12. void UnlockAllTrophys()
  13. {
  14.     for (int trophyId = 0; trophyId < GetTrophyCount(); trophyId++)
  15.         sceNpTrophyUnlockTrophy(1, 1, trophyId, NULL);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment