summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/kernel.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-06-28 23:38:14 +0200
committerbunnei <bunneidev@gmail.com>2021-07-21 03:54:55 +0200
commit929994132a4f39ca4ab2975caf47a2a99a19b518 (patch)
treeb4109845efdac23561d43b3f7ab9478a14532594 /src/core/hle/kernel/kernel.h
parentMerge pull request #6649 from german77/toggle_sdl (diff)
downloadyuzu-929994132a4f39ca4ab2975caf47a2a99a19b518.tar
yuzu-929994132a4f39ca4ab2975caf47a2a99a19b518.tar.gz
yuzu-929994132a4f39ca4ab2975caf47a2a99a19b518.tar.bz2
yuzu-929994132a4f39ca4ab2975caf47a2a99a19b518.tar.lz
yuzu-929994132a4f39ca4ab2975caf47a2a99a19b518.tar.xz
yuzu-929994132a4f39ca4ab2975caf47a2a99a19b518.tar.zst
yuzu-929994132a4f39ca4ab2975caf47a2a99a19b518.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/kernel.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h
index 2d01e1ae0..b669ca74e 100644
--- a/src/core/hle/kernel/kernel.h
+++ b/src/core/hle/kernel/kernel.h
@@ -185,6 +185,14 @@ public:
/// Opens a port to a service previously registered with RegisterNamedService.
KClientPort* CreateNamedServicePort(std::string name);
+ /// Registers all kernel objects with the global emulation state, this is purely for tracking
+ /// leaks after emulation has been shutdown.
+ void RegisterKernelObject(KAutoObject* object);
+
+ /// Unregisters a kernel object previously registered with RegisterKernelObject when it was
+ /// destroyed during the current emulation session.
+ void UnregisterKernelObject(KAutoObject* object);
+
/// Determines whether or not the given port is a valid named port.
bool IsValidNamedPort(NamedPortTable::const_iterator port) const;