aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-05-03 23:15:03 -0400
committerGitHub <noreply@github.com>2020-05-03 23:15:03 -0400
commit29fce1a1872909f7200a3b727adcc3dfb71013a1 (patch)
tree66cc98f31a0c4f36f6e77059b943c26d1ac6b984 /src/common
parent3cfa7a89e009026f33a0353d8c61deb555a904e4 (diff)
parent1417849a2b3689b46a8969f0ba2a0382ddefb8d1 (diff)
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.h5
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 {
uuid = INVALID_UUID;
}
+ // TODO(ogniK): Properly generate a Nintendo ID
+ constexpr u64 GetNintendoID() const {
+ return uuid[0];
+ }
+
std::string Format() const;
std::string FormatSwitch() const;
};