Homebrew Question Need help using pdm.h

MaiconErick

Well-Known Member
OP
Member
Joined
Jan 4, 2016
Messages
140
Trophies
0
Age
27
XP
342
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
 

You may also like...

General chit-chat
Help Users
  • No one is chatting at the moment.
  • ZeroT21 @ ZeroT21:
    while i simply make stinkbombs with pingpong balls
  • ZeroT21 @ ZeroT21:
    cops got called while suspecting arson ,c'mon

    :rofl:
  • K3N1 @ K3N1:
    I stole their bag of Halloween candy last year and the parents said stop being a little bitch and go get it
    +1
  • ZeroT21 @ ZeroT21:
    is it still trick and treat? or steal and cheat?
  • K3N1 @ K3N1:
    I think it's like trick or get kidnapped these days
  • M4x1mumReZ @ M4x1mumReZ:
    Stealing is treating
  • ZeroT21 @ ZeroT21:
    honestly, i find lots of kids nowadays like devils that need to be locked up forever
    +1
  • M4x1mumReZ @ M4x1mumReZ:
    Blame the kind of music that's affecting them
  • K3N1 @ K3N1:
    Issue is we got beat as kids now days it's prison if you flick their head
  • ZeroT21 @ ZeroT21:
    and here i thought they were lacking brain supplements
  • ZeroT21 @ ZeroT21:
    no sheet
  • ZeroT21 @ ZeroT21:
    seeing brats simply calling the cops on the parents just cus they dont wanna do homework or take a friggin bath tsk
  • K3N1 @ K3N1:
    You can't blame technology or what they do it's how they're raised
  • ZeroT21 @ ZeroT21:
    having ''smart tech'' dont always make someone smarter
  • ZeroT21 @ ZeroT21:
    you can blame alexa for teaching weird shit
  • K3N1 @ K3N1:
    Kids are smart or they would get away with what they do
  • ZeroT21 @ ZeroT21:
    we're all taught in school to cheat
  • ZeroT21 @ ZeroT21:
    cheat while not getting caught is not a crime
  • K3N1 @ K3N1:
    If a kid doesn't have the right sponge to learn from then that's what they imitate
  • ZeroT21 @ ZeroT21:
    sounds like my old man who had like 10 flings he brought home and demanding i call them mum the following day
  • ZeroT21 @ ZeroT21:
    is that the current free game?
  • K3N1 @ K3N1:
    Ye
    K3N1 @ K3N1: https://youtube.com/shorts/STu5S3NWaYo?feature=share +1