summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/cmif_types.h
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2024-02-09 17:51:03 +0100
committerGitHub <noreply@github.com>2024-02-09 17:51:03 +0100
commit52c8adc7edd1b4a5ab58d3bf17f9b4acc29a833e (patch)
tree2ff103c9bc53c3a006ef2534aa98084ccace8c1b /src/core/hle/service/cmif_types.h
parentMerge pull request #12920 from t895/jni-common (diff)
parentipc: additional fixes (diff)
downloadyuzu-52c8adc7edd1b4a5ab58d3bf17f9b4acc29a833e.tar
yuzu-52c8adc7edd1b4a5ab58d3bf17f9b4acc29a833e.tar.gz
yuzu-52c8adc7edd1b4a5ab58d3bf17f9b4acc29a833e.tar.bz2
yuzu-52c8adc7edd1b4a5ab58d3bf17f9b4acc29a833e.tar.lz
yuzu-52c8adc7edd1b4a5ab58d3bf17f9b4acc29a833e.tar.xz
yuzu-52c8adc7edd1b4a5ab58d3bf17f9b4acc29a833e.tar.zst
yuzu-52c8adc7edd1b4a5ab58d3bf17f9b4acc29a833e.zip
Diffstat (limited to 'src/core/hle/service/cmif_types.h')
-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 325304d5c..dad358b87 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