本文整理汇总了C#中IFile.ReadDWords方法的典型用法代码示例。如果您正苦于以下问题:C# IFile.ReadDWords方法的具体用法?C# IFile.ReadDWords怎么用?C# IFile.ReadDWords使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IFile
的用法示例。
在下文中一共展示了IFile.ReadDWords方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReadDeviceState
public void ReadDeviceState(IFile stateFile)
{
stateFile.ReadBytes(_registers);
_colorRam.ReadDeviceState(stateFile);
_rasterLine.ReadDeviceState(stateFile);
stateFile.ReadWords(_collisionMatrix);
stateFile.ReadWords(_spritePointers);
for (int i = 0; i < _sDataBuffer.Length; i++)
_sDataBuffer[i].ReadDeviceState(stateFile);
stateFile.ReadBytes(_videoMatrix);
_xCoord = stateFile.ReadWord();
_vmliRead = stateFile.ReadByte();
_vmliWrite = stateFile.ReadByte();
_vc = stateFile.ReadWord();
_vcBase = stateFile.ReadWord();
_rc = stateFile.ReadByte();
stateFile.ReadBytes(_mc);
stateFile.ReadBytes(_mcBase);
stateFile.ReadBools(_yExpandFlip);
stateFile.ReadBools(_spriteDMA);
stateFile.ReadBools(_spriteDisplay);
_auxBorderFlip = stateFile.ReadBool();
_displayState = stateFile.ReadBool();
_badLine = stateFile.ReadBool();
_rasterComparison = stateFile.ReadWord();
_raster = stateFile.ReadWord();
_borderColor = stateFile.ReadDWord();
stateFile.ReadDWords(_backGroundColor);
_topBorder = stateFile.ReadWord();
_bottomBorder = stateFile.ReadWord();
_leftBorder = stateFile.ReadWord();
_rightBorder = stateFile.ReadWord();
_memoryBank = stateFile.ReadWord();
_videoMemoryBase = stateFile.ReadWord();
_charGenMemoryBase = stateFile.ReadWord();
_bitmapMemoryBase = stateFile.ReadWord();
_graphicMode = _graphicModes[((_registers[(ushort)Registers.CR_2] & (byte)CR2.MCM) | (_registers[(ushort)Registers.CR_1] & (byte)(CR1.ECM | CR1.BMM))) >> 4];
}