|
Wing Commander II
Reconstructed Win32 source (1996)
|
Packet sections and data file handles. More...
#include "game.h"Go to the source code of this file.
Functions | |
| short | OpenDataFileOrDie (const char *path) |
| int | ReadDataFileAtOffset (unsigned short fd, int offset, unsigned int length, void *data) |
| int | SeekDataFile (unsigned short fd, int offset, unsigned int origin) |
| short | OpenPacketSection (const char *filename, short section, PacketSectionHandle *out) |
| void | CloseDataFileByHandle (unsigned short *handle) |
Packet sections and data file handles.
Definition in file packet.c.
| void CloseDataFileByHandle | ( | unsigned short * | handle | ) |
Definition at line 72 of file packet.c.
References CloseDataFile(), and CloseDataFileByHandle().
Referenced by CloseDataFileByHandle(), GetPacketSize(), PacketLoad(), and UpdateShipTurretGuns().
| short OpenDataFileOrDie | ( | const char * | path | ) |
Definition at line 13 of file datafile.c.
| short OpenPacketSection | ( | const char * | filename, |
| short | section, | ||
| PacketSectionHandle * | out ) |
Definition at line 14 of file packet.c.
References CloseDataFile(), PacketSectionHandle::compression, PacketSectionHandle::dataOffset, PacketSectionHandle::dataSize, PacketSectionHandle::file, PacketSectionHandle::finalSection, g_nPacketError, OpenDataFileOrDie(), OpenPacketSection(), PacketSectionHandle::position, ReadDataFileAtOffset(), PacketSectionHandle::sectionCount, and SeekDataFile().
Referenced by GetPacketSize(), OpenPacketSection(), PacketLoad(), and UpdateShipTurretGuns().
| int ReadDataFileAtOffset | ( | unsigned short | fd, |
| int | offset, | ||
| unsigned int | length, | ||
| void * | data ) |
Definition at line 60 of file datafile.c.
| int SeekDataFile | ( | unsigned short | fd, |
| int | offset, | ||
| unsigned int | origin ) |
Definition at line 78 of file datafile.c.