diff options
author | B3n30 <bene_thomas@web.de> | 2017-05-06 02:55:51 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2017-05-06 02:55:51 +0200 |
commit | 8bee0161458a082491d611ba4353cda84881b067 (patch) | |
tree | 776f900e7797f81bef52324cbc3f0202fc7fe8b7 /src/core/hle/service/cfg/cfg.h | |
parent | Merge pull request #2606 from wwylele/ir (diff) | |
download | yuzu-8bee0161458a082491d611ba4353cda84881b067.tar yuzu-8bee0161458a082491d611ba4353cda84881b067.tar.gz yuzu-8bee0161458a082491d611ba4353cda84881b067.tar.bz2 yuzu-8bee0161458a082491d611ba4353cda84881b067.tar.lz yuzu-8bee0161458a082491d611ba4353cda84881b067.tar.xz yuzu-8bee0161458a082491d611ba4353cda84881b067.tar.zst yuzu-8bee0161458a082491d611ba4353cda84881b067.zip |
Diffstat (limited to 'src/core/hle/service/cfg/cfg.h')
-rw-r--r-- | src/core/hle/service/cfg/cfg.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/core/hle/service/cfg/cfg.h b/src/core/hle/service/cfg/cfg.h index 618c9647e..1659ebf32 100644 --- a/src/core/hle/service/cfg/cfg.h +++ b/src/core/hle/service/cfg/cfg.h @@ -342,5 +342,26 @@ void SetSoundOutputMode(SoundOutputMode mode); */ SoundOutputMode GetSoundOutputMode(); +/** + * Generates a new random console unique id. + * @param random_number a random generated 16bit number stored at 0x90002, used for generating the + * console_id + * @param console_id the randomly created console id + */ +void GenerateConsoleUniqueId(u32& random_number, u64& console_id); + +/** + * Sets the random_number and the console unique id in the config savegame. + * @param random_number the random_number to set + * @param console_id the console id to set + */ +ResultCode SetConsoleUniqueId(u32 random_number, u64 console_id); + +/** + * Gets the console unique id from config savegame. + * @returns the console unique id + */ +u64 GetConsoleUniqueId(); + } // namespace CFG } // namespace Service |