nn::pl::CTR::UseGameCoin Function| Name | Description | |
|---|---|---|
| out | pCount | The number of Play Coins owned after spending. |
| in | useCount |
The number of Play Coins to spend. |
Consumes (spends) only the specified number of Play Coins.
This function entails a heavy processing load and also writes to NAND.
If the function succeeds, the number of Play Coins owned after spending is stored in the pCount parameter. If the function fails, an undefined value is stored there.
If nn::pl::ResultLackOfGameCoin is returned, it means there were not enough Play Coins.
Use the nn::pl::CTR::GetGameCoinCount function to determine the number of Play Coins owned, and specify a value equal to or less than this number for the useCount parameter.
CONFIDENTIAL