2
* Triplane Classic - a side-scrolling dogfighting game.
3
* Copyright (C) 1996,1997,2009 Dodekaedron Software Creations Oy
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
* tjt@users.sourceforge.net
21
/*******************************************************************************
24
DKS-datafile viewer for Wsystem 2.0 for DJGPP v.2.0�5
26
*******************************************************************************/
29
#include "io/trip_io.h"
35
#define MAX_ENTRIES 8192
39
struct main_directory_entry {
41
unsigned long int offset __attribute__ ((packed));
42
unsigned long int koko __attribute__ ((packed));
47
extern main_directory_entry *dirri;
49
int main(int argv, char *argc[]) {
53
printf("PGDView 1.1 for Wsystem. (c) 1996 Dodekaedron Software Creations, Inc.\n\n");
55
if ((argv != 3) && (argv != 2)) {
56
printf("Usage: PGDVIEW dks-datafilename [picturename] (no extension)\n");
60
strcpy(nimi, argc[1]);
75
for (lask = 0; lask < MAX_ENTRIES; lask++) {
76
if (!dirri[lask].nimi[0])
78
printf("%-6s ", dirri[lask].nimi);