aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/TRef.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/TRef.cs')
-rw-r--r--Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/TRef.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/TRef.cs b/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/TRef.cs
new file mode 100644
index 00000000..53746e74
--- /dev/null
+++ b/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/TRef.cs
@@ -0,0 +1,19 @@
+namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
+{
+ /// <summary>
+ /// Wraps a type in a class so it gets stored in the GC managed heap. This is used as communication mechanism
+ /// between classed that need to be disposed and, thus, can't share their references.
+ /// </summary>
+ /// <typeparam name="T">The internal type.</typeparam>
+ class TRef<T>
+ {
+ public T Value;
+
+ public TRef() { }
+
+ public TRef(T value)
+ {
+ Value = value;
+ }
+ }
+}