本文整理汇总了C#中X360.IO.DJsIO.ReadUInt40方法的典型用法代码示例。如果您正苦于以下问题:C# DJsIO.ReadUInt40方法的具体用法?C# DJsIO.ReadUInt40怎么用?C# DJsIO.ReadUInt40使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类X360.IO.DJsIO
的用法示例。
在下文中一共展示了DJsIO.ReadUInt40方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: read
void read(DJsIO xIO, STFSPackage xPackage, PackageMagic MagicType)
{
xMagic = MagicType;
xIO.Position = 0x22C;
if (xPackage != null)
xPackage.AddToLog("Reading Liscenses");
xLisc = new List<STFSLicense>();
for (int i = 0; i < 0x10; i++)
xLisc.Add(new STFSLicense(xIO.ReadInt64(), xIO.ReadInt32(), xIO.ReadInt32(), i == 0));
if (xPackage != null)
xPackage.AddToLog("Reading Package locks");
xIO.Position = 0x344;
if (xPackage != null)
xPackage.AddToLog("Reading Header Values");
xThisType = (PackageType)xIO.ReadUInt32(); ;
MetaDataVersion = xIO.ReadUInt32();
xContentSize = xIO.ReadInt64();
MediaID = xIO.ReadUInt32();
Version_ = xIO.ReadUInt32();
Version_Base = xIO.ReadUInt32();
TitleID = xIO.ReadUInt32();
Platform = xIO.ReadByte();
ExecutableType = xIO.ReadByte();
DiscNumber = xIO.ReadByte();
DiscInSet = xIO.ReadByte();
SaveGameID = xIO.ReadUInt32();
SaveConsoleID = (long)xIO.ReadUInt40();
ProfileID = xIO.ReadInt64();
xIO.Position = 0x39D;
DataFileCount = xIO.ReadUInt32();
DataFileSize = xIO.ReadInt64();
Reserved = xIO.ReadInt64();
xSeriesID = xIO.ReadBytes(0x10);
xSeasonID = xIO.ReadBytes(0x10);
SeasonNumber = xIO.ReadUInt16();
EpidsodeNumber = xIO.ReadUInt16();
xIO.Position += 0x28;
xDeviceID = xIO.ReadBytes(0x14);
for (int i = 0; i < 9; i++)
xTitles[i] = xIO.ReadString(StringForm.Unicode, 0x80).Replace("\0", "");
for (int i = 0; i < 9; i++)
xDescriptions[i] = xIO.ReadString(StringForm.Unicode, 0x80).Replace("\0", "");
xPublisher = xIO.ReadString(StringForm.Unicode, 0x40).Replace("\0", "");
xTitle = xIO.ReadString(StringForm.Unicode, 0x40).Replace("\0", "");
IDTransferByte = xIO.ReadByte();
// Package Image
int xSize = xIO.ReadInt32();
xIO.Position = 0x171A;
if (xSize < 0x4000)
xPackageImage = xIO.ReadBytes(xSize);
else xPackageImage = xIO.ReadBytes(0x4000);
// Content Image
xIO.Position = 0x1716;
xSize = xIO.ReadInt32();
xIO.Position = 0x571A;
if (xSize < 0x4000)
xContentImage = xIO.ReadBytes(xSize);
else xContentImage = xIO.ReadBytes(0x4000);
xLoaded = true;
}