本文整理汇总了C#中X360.IO.DJsIO.WriteUInt40方法的典型用法代码示例。如果您正苦于以下问题:C# DJsIO.WriteUInt40方法的具体用法?C# DJsIO.WriteUInt40怎么用?C# DJsIO.WriteUInt40使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类X360.IO.DJsIO
的用法示例。
在下文中一共展示了DJsIO.WriteUInt40方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Write
internal bool Write(ref DJsIO x)
{
if (!xLoaded)
return false;
try
{
if (x == null || !x.Accessed)
return false;
x.Position = 0x22C;
foreach (STFSLicense b in xLisc)
{
x.Write(b.ID);
x.Write(b.Var1);
x.Write(b.Flags);
}
x.Position = 0x344;
x.Write((uint)xThisType);
x.Write(MetaDataVersion);
x.Write(xContentSize);
x.Write(MediaID);
x.Write(Version_);
x.Write(Version_Base);
x.Write(TitleID);
x.Write(Platform);
x.Write(ExecutableType);
x.Write(DiscNumber);
x.Write(DiscInSet);
x.Write(SaveGameID);
x.WriteUInt40((ulong)SaveConsoleID);
x.Write(ProfileID);
x.Position = 0x39D;
x.Write(DataFileCount);
x.Write(DataFileSize);
x.Write(Reserved);
x.Write(SeriesID);
x.Write(SeasonID);
x.Write(SeasonNumber);
x.Write(EpidsodeNumber);
x.Position += 0x28;
x.Write(xDeviceID);
for (int i = 0; i < 9; i++)
x.Write(xTitles[i], StringForm.Unicode, 0x80, PadLocale.Right, PadType.Null);
for (int i = 0; i < 9; i++)
x.Write(xDescriptions[i], StringForm.Unicode, 0x80, PadLocale.Right, PadType.Null);
x.Write(xPublisher, StringForm.Unicode, 0x40, PadLocale.Right, PadType.Null);
x.Write(xTitle, StringForm.Unicode, 0x40, PadLocale.Right, PadType.Null);
x.Write(IDTransferByte);
x.Write(xPackageImage.Length);
x.Write(xContentImage.Length);
x.Write(xPackageImage);
x.Write(new byte[0x4000 - xPackageImage.Length]);
x.Write(xContentImage);
x.Write(new byte[(0x4000 - xContentImage.Length)]);
return true;
}
catch { return false; }
}