Homebrew Question Need help using pdm.h

MaiconErick

Well-Known Member
OP
Member
Joined
Jan 4, 2016
Messages
140
Trophies
0
Age
28
XP
373
Country
Brazil
Hey, I'm trying to use pdm.h to display play stats, but with no luck. Even the example from devkit doesn't work.
I think the issue is that I'm doing something wrong when passing the parameters to the applet.
I stripped down the code to the max and took it away from the loops just to keep it simple, is there something wrong here?

Code:
PdmApplicationPlayStatistics stats[1];
u64 titleIDs[1] = {0x0100E46006708000};
s32 total_out=0;
s32 count=1;

rc = pdmqryInitialize(); //This one succeeds

rc = appletQueryApplicationPlayStatistics(stats, titleIDs, count, &total_out); //This one doesn't, so it always prints fail.
if (R_FAILED(rc)) printf("\n\nFAILED!!\n\n");
if (R_SUCCEEDED(rc)) printf("\n\nSUCCEEDED!n\n");

Sorry if I'm not clear enough about my issue, I need help :x
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    What a weird game
  • K3Nv2 @ K3Nv2:
    Yeah I wanted to see shards of the titanic
  • BigOnYa @ BigOnYa:
    I kept thinking jaws was gonna come up and attack
  • K3Nv2 @ K3Nv2:
    Jaws is on a diet
  • K3Nv2 @ K3Nv2:
    Damn power went out
  • BigOnYa @ BigOnYa:
    Ok xdqwerty, your little bro prob tripped On the cord and unplugged you
  • K3Nv2 @ K3Nv2:
    Ya I'm afraid of the dark hug me
  • BigOnYa @ BigOnYa:
    Grab and hold close your AncientBoi doll.
  • K3Nv2 @ K3Nv2:
    Damn didn't charge my external battery either
  • BigOnYa @ BigOnYa:
    Take the batteries out of your SuperStabber3000... Or is it gas powered?
  • K3Nv2 @ K3Nv2:
    I stole batteries from your black mamba
    +1
  • K3Nv2 @ K3Nv2:
    My frozen food better hold up for an hour I know that
  • BigOnYa @ BigOnYa:
    Or else gonna be a big lunch and dinner tomorrow.
  • BigOnYa @ BigOnYa:
    Did you pay your power bill? Or give all yo money to my wife, again.
  • K3Nv2 @ K3Nv2:
    Oh good the estimated time is the same exact time they just said
    +1
  • BigOnYa @ BigOnYa:
    Load up your pc and monitor, and head to a McDonalds dining room, they have free WiFi
  • K3Nv2 @ K3Nv2:
    Sir please watch your porn in the bathroom
    +2
  • BigOnYa @ BigOnYa:
    No sir we can not sell you anymore apple pies, after what you did with the last one.
  • K3Nv2 @ K3Nv2:
    We ran out
  • HiradeGirl @ HiradeGirl:
    for your life
    +1
  • K3Nv2 @ K3Nv2:
    My life has no value my fat ass is staying right here
    SylverReZ @ SylverReZ: https://www.youtube.com/watch?v=8EmXheuVzFo