From 3d475a655bd2e5a117d7dd4549d02c7fb092b4bb 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 f6ad064fb7..4d3af8cec6 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