mirror of
https://github.com/XorTroll/EveryFileExplorer.git
synced 2024-11-23 09:59:41 +00:00
22 lines
503 B
C#
22 lines
503 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using LibEveryFileExplorer.Files.SimpleFileSystem;
|
|
|
|
namespace _3DS
|
|
{
|
|
public class SARCEFESFSFile : EFESFSFile
|
|
{
|
|
public SARCEFESFSFile(SFSFile File)
|
|
: base(File) { }
|
|
|
|
public override byte[] FindFileRelative(string Path)
|
|
{
|
|
Path = Path.Replace("\\", "/");
|
|
if (Path.TrimStart('/').StartsWith("../")) return null;
|
|
return File.Parent.GetFileByID((int)SARC.GetHashFromName(Path, 0x65)).Data;
|
|
}
|
|
}
|
|
}
|