summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/cmif_types.h
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2024-02-07 21:06:15 +0100
committerLiam <byteslice@airmail.cc>2024-02-07 21:06:15 +0100
commitfee263c59c2eaf987f750768548f1cc6aa491d3c (patch)
treea52053ea84facff57155fa08e078082bde15a446 /src/core/hle/service/cmif_types.h
parentMerge pull request #12883 from FernandoS27/memory_manager_mem (diff)
downloadyuzu-fee263c59c2eaf987f750768548f1cc6aa491d3c.tar
yuzu-fee263c59c2eaf987f750768548f1cc6aa491d3c.tar.gz
yuzu-fee263c59c2eaf987f750768548f1cc6aa491d3c.tar.bz2
yuzu-fee263c59c2eaf987f750768548f1cc6aa491d3c.tar.lz
yuzu-fee263c59c2eaf987f750768548f1cc6aa491d3c.tar.xz
yuzu-fee263c59c2eaf987f750768548f1cc6aa491d3c.tar.zst
yuzu-fee263c59c2eaf987f750768548f1cc6aa491d3c.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/cmif_types.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/hle/service/cmif_types.h b/src/core/hle/service/cmif_types.h
index 84f4c2456..db5a013c7 100644
--- a/src/core/hle/service/cmif_types.h
+++ b/src/core/hle/service/cmif_types.h
@@ -65,6 +65,14 @@ struct ClientProcessId {
};
struct ProcessId {
+ explicit ProcessId() : pid() {}
+ explicit ProcessId(u64 p) : pid(p) {}
+ /* implicit */ ProcessId(const ClientProcessId& c) : pid(c.pid) {}
+
+ bool operator==(const ProcessId& rhs) const {
+ return pid == rhs.pid;
+ }
+
explicit operator bool() const {
return pid != 0;
}
@@ -291,4 +299,4 @@ private:
};
// clang-format on
-} // namespace Service \ No newline at end of file
+} // namespace Service