From 1417849a2b3689b46a8969f0ba2a0382ddefb8d1 Mon Sep 17 00:00:00 2001 From: David Marcec Date: Wed, 29 Apr 2020 21:09:53 +1000 Subject: acc: Return a unique value per account for GetAccountId --- src/common/uuid.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/common') 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; }; -- cgit v1.2.3