public string GetLaunchIni(NANDReader reader) { if (reader.FsRoot == null) { reader.ScanForFsRootAndMobiles(); } var nandfs = new NANDFileSystem(); var fs = nandfs.ParseFileSystem(ref reader); foreach (var fileSystemEntry in fs) { if (fileSystemEntry.Filename.Equals("launch.ini", StringComparison.CurrentCultureIgnoreCase)) { return(Encoding.ASCII.GetString(fileSystemEntry.GetData(ref reader))); } } throw new X360UtilsException(X360UtilsException.X360UtilsErrors.DataNotFound, "Launch.ini"); }
public byte[] GetFcrt(NANDReader reader) { if (reader.FsRoot == null) { reader.ScanForFsRootAndMobiles(); } var nandfs = new NANDFileSystem(); var fs = nandfs.ParseFileSystem(ref reader); foreach (var fileSystemEntry in fs) { if (fileSystemEntry.Filename.Equals("fcrt.bin", StringComparison.CurrentCultureIgnoreCase)) { return(fileSystemEntry.GetData(ref reader)); } } throw new X360UtilsException(X360UtilsException.X360UtilsErrors.DataNotFound, "FCRT"); }