diff options
| author | 2020-05-03 23:15:03 -0400 | |
|---|---|---|
| committer | 2020-05-03 23:15:03 -0400 | |
| commit | 29fce1a1872909f7200a3b727adcc3dfb71013a1 (patch) | |
| tree | 66cc98f31a0c4f36f6e77059b943c26d1ac6b984 /src/common | |
| parent | settings: Add anisotropic filtering level to the yuzu configuration log (#3875) (diff) | |
| parent | acc: Return a unique value per account for GetAccountId (diff) | |
| download | yuzu-29fce1a1872909f7200a3b727adcc3dfb71013a1.tar.gz yuzu-29fce1a1872909f7200a3b727adcc3dfb71013a1.tar.xz yuzu-29fce1a1872909f7200a3b727adcc3dfb71013a1.zip | |
Merge pull request #3822 from ogniK5377/GetAccountId
acc: Return a unique value per account for GetAccountId
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/uuid.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/uuid.h b/src/common/uuid.h index f6ad064fb..4d3af8cec 100644 --- a/src/common/uuid.h +++ b/src/common/uuid.h | |||
| @@ -40,6 +40,11 @@ struct UUID { | |||
| 40 | uuid = INVALID_UUID; | 40 | uuid = INVALID_UUID; |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | // TODO(ogniK): Properly generate a Nintendo ID | ||
| 44 | constexpr u64 GetNintendoID() const { | ||
| 45 | return uuid[0]; | ||
| 46 | } | ||
| 47 | |||
| 43 | std::string Format() const; | 48 | std::string Format() const; |
| 44 | std::string FormatSwitch() const; | 49 | std::string FormatSwitch() const; |
| 45 | }; | 50 | }; |