Wing Commander II
Reconstructed Win32 source (1996)
Loading...
Searching...
No Matches
packet.c File Reference

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)

Detailed Description

Packet sections and data file handles.

Definition in file packet.c.

Function Documentation

◆ CloseDataFileByHandle()

void CloseDataFileByHandle ( unsigned short * handle)

◆ OpenDataFileOrDie()

short OpenDataFileOrDie ( const char * path)

Definition at line 13 of file datafile.c.

◆ OpenPacketSection()

◆ ReadDataFileAtOffset()

int ReadDataFileAtOffset ( unsigned short fd,
int offset,
unsigned int length,
void * data )

Definition at line 60 of file datafile.c.

◆ SeekDataFile()

int SeekDataFile ( unsigned short fd,
int offset,
unsigned int origin )

Definition at line 78 of file datafile.c.