nn::pl::CTR::UseGameCoin Function

Syntax

Result UseGameCoin(
     u16 * pCount,
     u16 useCount
);

Parameters

Name Description
out pCount The number of Play Coins owned after spending.
in useCount The number of Play Coins to spend.

Return Values

Returns the result of the operation.

Description

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.

Revision History

2011/08/19
Initial version.

CONFIDENTIAL