nn::fs::SetSaveDataSecureValue Function

Syntax

void SetSaveDataSecureValue(
     bit64 value
);

void SetSaveDataSecureValue(
     bit64 value,
     bit64 mask
);

List of Overloaded Member Functions

SetSaveDataSecureValue ( bit64 ) Stores a 64-bit value in an application-linked format in the system.
SetSaveDataSecureValue ( bit64, bit64 ) Stores a 64-bit value in an application-linked format in the system.

Description of SetSaveDataSecureValue ( bit64 )

For SD applications, the 64-bit value specified by value is written to the save region in CTR system memory. The save region is unique to the application that called this function, so the same application always references the same save region. The same value is stored to the application's save data, so when you load the save data you can check whether the user has rolled back the save data by comparing this value to the value obtained by calling the VerifySaveDataSecureValue function.

Nothing is done in the case of card applications.

Description of SetSaveDataSecureValue ( bit64, bit64 )

For SD applications, the 64-bit value specified by value is written to the save region in CTR system memory. However, the value written here comprises just the bits as specified by the mask argument, and bits not part of mask are maintained as their original values. The save region is unique to the application that called this function, so the same application always references the same save region. The same value is stored to the application's save data, so when you load the save data you can check whether the user has rolled back the save data by comparing this value to the value obtained by calling the VerifySaveDataSecureValue function.

Nothing is done in the case of card applications.


CONFIDENTIAL