|
FS2_Open
Open source remastering of the Freespace 2 engine
|
#include <stdlib.h>#include <stdio.h>#include <string.h>#include <dirent.h>#include <unistd.h>#include <sys/stat.h>#include <sys/types.h>#include "globalincs/pstypes.h"#include "cfile/cfile.h"Go to the source code of this file.
Classes | |
| struct | vp_header |
Macros | |
| #define | INT_SWAP(x) |
| #define | BLOCK_SIZE (1024*1024) |
| #define | VERSION_NUMBER 2; |
Typedefs | |
| typedef struct vp_header | vp_header |
Functions | |
| size_t | fswrite_int (int *wint, FILE *stream) |
| void | write_header () |
| int | write_index (char *hf, char *df) |
| void | pack_file (char *filespec, char *filename, int filesize, _fs_time_t time_write) |
| void | add_directory (char *dirname) |
| void | pack_directory (char *filespec) |
| int | verify_directory (char *filespec) |
| void | print_instructions () |
| int | main (int argc, char *argv[]) |
Variables | |
| unsigned int | Total_size =16 |
| unsigned int | Num_files =0 |
| FILE * | fp_out = NULL |
| FILE * | fp_out_hdr = NULL |
| char | archive_dat [1024] |
| char | archive_hdr [1024] |
| char | tmp_data [BLOCK_SIZE] |
| #define BLOCK_SIZE (1024*1024) |
Definition at line 72 of file cfilearchiver.cpp.
| #define INT_SWAP | ( | x | ) |
Definition at line 36 of file cfilearchiver.cpp.
| #define VERSION_NUMBER 2; |
Definition at line 73 of file cfilearchiver.cpp.
| void add_directory | ( | char * | dirname | ) |
Definition at line 182 of file cfilearchiver.cpp.
| size_t fswrite_int | ( | int * | wint, |
| FILE * | stream | ||
| ) |
Definition at line 47 of file cfilearchiver.cpp.
Definition at line 349 of file cfilearchiver.cpp.
| void pack_directory | ( | char * | filespec | ) |
Definition at line 205 of file cfilearchiver.cpp.
| void pack_file | ( | char * | filespec, |
| char * | filename, | ||
| int | filesize, | ||
| _fs_time_t | time_write | ||
| ) |
Definition at line 118 of file cfilearchiver.cpp.
| void print_instructions | ( | ) |
Definition at line 316 of file cfilearchiver.cpp.
| int verify_directory | ( | char * | filespec | ) |
Definition at line 298 of file cfilearchiver.cpp.
| void write_header | ( | ) |
Definition at line 77 of file cfilearchiver.cpp.
| int write_index | ( | char * | hf, |
| char * | df | ||
| ) |
Definition at line 88 of file cfilearchiver.cpp.
| char archive_dat[1024] |
Definition at line 69 of file cfilearchiver.cpp.
| char archive_hdr[1024] |
Definition at line 70 of file cfilearchiver.cpp.
| FILE* fp_out = NULL |
Definition at line 57 of file cfilearchiver.cpp.
| FILE* fp_out_hdr = NULL |
Definition at line 58 of file cfilearchiver.cpp.
| unsigned int Num_files =0 |
Definition at line 56 of file cfilearchiver.cpp.
| char tmp_data[BLOCK_SIZE] |
Definition at line 75 of file cfilearchiver.cpp.
| unsigned int Total_size =16 |
Definition at line 55 of file cfilearchiver.cpp.