mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Move DirectoryEntryEx
This commit is contained in:
parent
00a5b07da0
commit
27bf4a1003
10 changed files with 29 additions and 18 deletions
|
@ -1,27 +1,9 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using LibHac.Common;
|
||||
using LibHac.FsSystem;
|
||||
|
||||
namespace LibHac.Fs;
|
||||
|
||||
public class DirectoryEntryEx
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string FullPath { get; set; }
|
||||
public NxFileAttributes Attributes { get; set; }
|
||||
public DirectoryEntryType Type { get; set; }
|
||||
public long Size { get; set; }
|
||||
|
||||
public DirectoryEntryEx(string name, string fullPath, DirectoryEntryType type, long size)
|
||||
{
|
||||
Name = name;
|
||||
FullPath = PathTools.Normalize(fullPath);
|
||||
Type = type;
|
||||
Size = size;
|
||||
}
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Explicit)]
|
||||
public struct DirectoryEntry
|
||||
{
|
||||
|
|
|
@ -7,6 +7,7 @@ using LibHac.Common;
|
|||
using LibHac.Crypto;
|
||||
using LibHac.Fs;
|
||||
using LibHac.Fs.Fsa;
|
||||
using LibHac.Tools.Fs;
|
||||
using LibHac.Tools.FsSystem;
|
||||
using LibHac.Util;
|
||||
|
||||
|
|
21
src/LibHac/Tools/Fs/DirectoryEntryEx.cs
Normal file
21
src/LibHac/Tools/Fs/DirectoryEntryEx.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
using LibHac.Fs;
|
||||
using LibHac.FsSystem;
|
||||
|
||||
namespace LibHac.Tools.Fs;
|
||||
|
||||
public class DirectoryEntryEx
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string FullPath { get; set; }
|
||||
public NxFileAttributes Attributes { get; set; }
|
||||
public DirectoryEntryType Type { get; set; }
|
||||
public long Size { get; set; }
|
||||
|
||||
public DirectoryEntryEx(string name, string fullPath, DirectoryEntryType type, long size)
|
||||
{
|
||||
Name = name;
|
||||
FullPath = PathTools.Normalize(fullPath);
|
||||
Type = type;
|
||||
Size = size;
|
||||
}
|
||||
}
|
|
@ -4,6 +4,7 @@ using LibHac.Common;
|
|||
using LibHac.Fs;
|
||||
using LibHac.Fs.Fsa;
|
||||
using LibHac.FsSystem;
|
||||
using LibHac.Tools.Fs;
|
||||
using LibHac.Util;
|
||||
|
||||
namespace LibHac.Tools.FsSystem;
|
||||
|
|
|
@ -7,6 +7,7 @@ using LibHac.Common;
|
|||
using LibHac.Fs;
|
||||
using LibHac.Fs.Fsa;
|
||||
using LibHac.FsSystem;
|
||||
using LibHac.Tools.Fs;
|
||||
using LibHac.Util;
|
||||
using Path = LibHac.Fs.Path;
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ using LibHac.Common;
|
|||
using LibHac.Fs;
|
||||
using LibHac.Fs.Fsa;
|
||||
using LibHac.FsSystem;
|
||||
using LibHac.Tools.Fs;
|
||||
using LibHac.Util;
|
||||
|
||||
namespace LibHac.Tools.FsSystem.RomFs;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
using LibHac.Common;
|
||||
using LibHac.Fs;
|
||||
using LibHac.Fs.Fsa;
|
||||
using LibHac.Tools.Fs;
|
||||
using LibHac.Util;
|
||||
using Path = LibHac.Fs.Path;
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ using LibHac.Fs.Fsa;
|
|||
using LibHac.Fs.Impl;
|
||||
using LibHac.FsSystem;
|
||||
using LibHac.Npdm;
|
||||
using LibHac.Tools.Fs;
|
||||
using LibHac.Tools.FsSystem;
|
||||
using LibHac.Tools.FsSystem.NcaUtils;
|
||||
using static hactoolnet.Print;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
using System.IO;
|
||||
using LibHac.Fs;
|
||||
using LibHac.FsSystem;
|
||||
using LibHac.Tools.Fs;
|
||||
using LibHac.Tools.FsSystem;
|
||||
using LibHac.Tools.FsSystem.RomFs;
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ using LibHac.Fs;
|
|||
using LibHac.Fs.Fsa;
|
||||
using LibHac.Fs.Impl;
|
||||
using LibHac.FsSystem;
|
||||
using LibHac.Tools.Fs;
|
||||
using LibHac.Tools.FsSystem;
|
||||
using LibHac.Tools.FsSystem.Save;
|
||||
using static hactoolnet.Print;
|
||||
|
|
Loading…
Reference in a new issue