Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* $(SCE_PS3_ROOT)\target\ppu\lib\libsysutil_np_trophy_stub.a */
- #include <np.h>
- int GetTrophyCount()
- {
- SceNpTrophyGameDetails game_details;
- sceNpTrophyGetGameInfo(1, 1, &game_details, NULL);
- return game_details.numTrophies;
- }
- void UnlockAllTrophys()
- {
- for (int trophyId = 0; trophyId < GetTrophyCount(); trophyId++)
- sceNpTrophyUnlockTrophy(1, 1, trophyId, NULL);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement