diff options
author | Lioncash <mathew1800@gmail.com> | 2021-09-22 23:52:37 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2021-09-22 23:59:00 +0200 |
commit | 40314cc58646e9e91e961e0d82b7d1b53bd839a0 (patch) | |
tree | 17ec58af41507fc0edff29325b528ac4029d599b /src/common | |
parent | Merge pull request #7003 from ameerj/unlocked-present-mode (diff) | |
download | yuzu-40314cc58646e9e91e961e0d82b7d1b53bd839a0.tar yuzu-40314cc58646e9e91e961e0d82b7d1b53bd839a0.tar.gz yuzu-40314cc58646e9e91e961e0d82b7d1b53bd839a0.tar.bz2 yuzu-40314cc58646e9e91e961e0d82b7d1b53bd839a0.tar.lz yuzu-40314cc58646e9e91e961e0d82b7d1b53bd839a0.tar.xz yuzu-40314cc58646e9e91e961e0d82b7d1b53bd839a0.tar.zst yuzu-40314cc58646e9e91e961e0d82b7d1b53bd839a0.zip |
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/uuid.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/uuid.h b/src/common/uuid.h index 2353179d8..8ea01f8da 100644 --- a/src/common/uuid.h +++ b/src/common/uuid.h @@ -58,6 +58,13 @@ struct UUID { uuid = INVALID_UUID; } + [[nodiscard]] constexpr bool IsInvalid() const { + return uuid == INVALID_UUID; + } + [[nodiscard]] constexpr bool IsValid() const { + return !IsInvalid(); + } + // TODO(ogniK): Properly generate a Nintendo ID [[nodiscard]] constexpr u64 GetNintendoID() const { return uuid[0]; |