diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-09-24 14:02:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-24 14:02:11 +0200 |
commit | c8512839d78249a441a354a4072779c982fd4305 (patch) | |
tree | 7fa0f1fa088cc3c96903381967542317b5f914d7 /src/common | |
parent | Merge pull request #7043 from astrelsky/cmake (diff) | |
parent | core/profile_select: Avoid uninitialized read in SelectProfile() (diff) | |
download | yuzu-c8512839d78249a441a354a4072779c982fd4305.tar yuzu-c8512839d78249a441a354a4072779c982fd4305.tar.gz yuzu-c8512839d78249a441a354a4072779c982fd4305.tar.bz2 yuzu-c8512839d78249a441a354a4072779c982fd4305.tar.lz yuzu-c8512839d78249a441a354a4072779c982fd4305.tar.xz yuzu-c8512839d78249a441a354a4072779c982fd4305.tar.zst yuzu-c8512839d78249a441a354a4072779c982fd4305.zip |
Diffstat (limited to '')
-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]; |