2018-12-06 05:35:52 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace LibHac.Tests
|
|
|
|
|
{
|
|
|
|
|
public class FileSystemTests
|
|
|
|
|
{
|
|
|
|
|
public static void Main(string[] args)
|
|
|
|
|
{
|
2018-12-09 00:58:30 +01:00
|
|
|
|
LocalFileSystem fs = new LocalFileSystem("G:\\\\");
|
2018-12-06 05:35:52 +01:00
|
|
|
|
foreach(IFile file in fs.RootDirectory.Files)
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine(file.Path);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
foreach (IDirectory directory in fs.RootDirectory.Directories)
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine(directory.Path);
|
|
|
|
|
}
|
|
|
|
|
|
2018-12-09 00:58:30 +01:00
|
|
|
|
string baseDir = "C:\\Users\\Somebody Whoisbored\\.switch\\";
|
|
|
|
|
Keyset keyset = ExternalKeys.ReadKeyFile(baseDir + "prod.keys", baseDir + "title.keys", baseDir + "console.keys");
|
|
|
|
|
|
|
|
|
|
SwitchFs sw = new SwitchFs(keyset, fs);
|
|
|
|
|
;
|
|
|
|
|
|
2018-12-06 05:35:52 +01:00
|
|
|
|
Console.ReadKey();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|