aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/FileSystem/LocationEntry.cs
diff options
context:
space:
mode:
authorAc_K <Acoustik666@gmail.com>2022-03-22 20:46:16 +0100
committerGitHub <noreply@github.com>2022-03-22 20:46:16 +0100
commite3b36db71c62a34a26b30683dd5ad5410c97cc9c (patch)
tree18feea12db46ad2ddcdc207e9fd0e805fd98b7da /Ryujinx.HLE/FileSystem/LocationEntry.cs
parentba0171d05464201c1513386b7d0b69b5ea956426 (diff)
hle: Some cleanup (#3210)1.1.83
* hle: Some cleanup This PR cleaned up a bit the HLE folder and the VirtualFileSystem one, since we use LibHac, we can use some class of it directly instead of duplicate things. The "Content" of VFS folder is removed since it should be handled in the NCM service directly. A larger cleanup should be done later since there is still be duplicated code here and there. * Fix Headless.SDL2 * Addresses gdkchan feedback
Diffstat (limited to 'Ryujinx.HLE/FileSystem/LocationEntry.cs')
-rw-r--r--Ryujinx.HLE/FileSystem/LocationEntry.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/Ryujinx.HLE/FileSystem/LocationEntry.cs b/Ryujinx.HLE/FileSystem/LocationEntry.cs
new file mode 100644
index 00000000..45cbc8cd
--- /dev/null
+++ b/Ryujinx.HLE/FileSystem/LocationEntry.cs
@@ -0,0 +1,25 @@
+using LibHac.FsSystem;
+
+namespace Ryujinx.HLE.FileSystem
+{
+ public struct LocationEntry
+ {
+ public string ContentPath { get; private set; }
+ public int Flag { get; private set; }
+ public ulong TitleId { get; private set; }
+ public NcaContentType ContentType { get; private set; }
+
+ public LocationEntry(string contentPath, int flag, ulong titleId, NcaContentType contentType)
+ {
+ ContentPath = contentPath;
+ Flag = flag;
+ TitleId = titleId;
+ ContentType = contentType;
+ }
+
+ public void SetFlag(int flag)
+ {
+ Flag = flag;
+ }
+ }
+}