Skip to content

Commit

Permalink
Initial revision
Browse files Browse the repository at this point in the history
  • Loading branch information
pace committed Jan 1, 2007
0 parents commit be837a6
Show file tree
Hide file tree
Showing 84 changed files with 42,078 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gdbinit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
b unimp
95 changes: 95 additions & 0 deletions Buzz_inc.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
/*
Copyright (C) 2005 Michael K. McCarty & Fritz Bronner
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

#ifndef ui8
typedef unsigned char ui8;
#endif

#ifndef i8
typedef char i8;
#endif

#ifndef ui16
typedef unsigned short ui16;
#endif

#ifndef i16
typedef short i16;
#endif

#ifndef ui32
typedef unsigned long ui32;
#endif

#ifndef i32
typedef long i32;
#endif

#include "pace.h"

//#include <process.h>
#include <stdio.h>
#include <string.h>
//#include <dir.h>
#include <ctype.h>
//#include <mem.h>
#include <stdlib.h>
#include <stdarg.h>
//#include <alloc.h>
//#include <conio.h>
#include <fcntl.h>
//#include <dos.h>
//#include <io.h>
#include <time.h>
//#include <bios.h>
#include <math.h>
#include <sys/stat.h>

// AIL includes
//#include <ail.h>
//#include <gen.h>
//#include <soundfx.h>

// EMS Includes
#include "sv_lib.h"

// Gravis Ultrasound Includes (removed from CD-ROM
//#include "gus\forte.h"
//#include "gus\extern.h"
//#include "gus\gf1proto.h"
//#include "gus\ultraerr.h"

// CD-ROM Includes
// #include "cdmaster.h"
// #include "cdrom.h"

// GENUS includes
//#include <gxLib.h>
//#include <grLib.h>

// my includes

#pragma pack(1)

#include <data.h> // main data structures
#include <proto.h> // prototypes and general defines
#include <music.h> // defines for music names

#define random brandom
#undef NULL
#define NULL 0
41 changes: 41 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
2007-01-01 Pace Willisson <[email protected]>

* V8

* PlaySequence, Replay

* change "kill()" to "remove_savegame()"

* remove uses of SetROMDir, chdir, unlink

2006-12-31 Pace Willisson <[email protected]>

* V7

* old bug: initialization of FList when looking for saved games

* frm decoding; first page of mission history screen (with
still image from movie)

2006-12-30 Pace Willisson <[email protected]>

* V6

* change many RLED to RLED_img

* avoid segfaults due to NULL pointers

2006-12-29 Pace Willisson <[email protected]>

* V5

* V4

2006-12-28 Pace Willisson <[email protected]>

* V3

* V2

* V1

56 changes: 56 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
EXTRA_WARNINGS = -Werror -Wextra -Wno-unused-parameter -Wno-sign-compare \
-Wno-char-subscripts -Wno-unused-variable -Wno-parentheses \
-Wno-uninitialized -Wno-missing-braces

CFLAGS = -g -Wall -Dfar= -Dpascal= -I. `pkg-config --cflags gtk+-2.0`

.c.o:
@echo "$(CC) ...flags... -c $*.c"
@$(CC) $(CFLAGS) $(EXTRA_WARNINGS) -O -c -o TMP.o $*.c
@$(CC) $(CFLAGS) $(EXTRA_WARNINGS) -c $*.c

PROGS = baris imgsplit vtest decode getport mkmovie
all: $(PROGS)

BARIS_HFILES = Buzz_inc.h cdmaster.h cdrom.h data.h externs.h mis.h mtype.h \
music.h nn.h pace.h pcx_hdr.h proto.h records.h replay.h soundfx.h \
sv_lib.h uc.h soundint.h

BARIS_OBJS = admin.o aimast.o aimis.o aipur.o ast0.o ast1.o \
ast2.o ast3.o ast4.o budget.o crew.o endgame.o \
futbub.o future.o hardef.o intel.o intro.o main.o mc2.o mc.o \
mis_c.o mis_m.o museum.o name.o newmis.o news.o news_sup.o \
news_suq.o \
place.o port.o prefs.o prest.o radar.o rdplex.o recods.o \
replay.o review.o rush.o sel.o start.o \
vab.o pace.o gx.o gtk.o gr.o alsa.o
baris: $(BARIS_OBJS)
$(CC) $(CFLAGS) -o baris $(BARIS_OBJS) `pkg-config --libs gtk+-2.0` -lasound -lopus -lm

# $(BARIS_OBJS): $(BARIS_HFILES)


imgsplit: imgsplit.o
$(CC) $(CFLAGS) -o imgsplit imgsplit.o -lm

vtest: vtest.o
$(CC) $(CFLAGS) -o vtest vtest.o -lasound -lopus -lm

decode: decode.o
$(CC) $(CFLAGS) -o decode decode.o -lopus -lm

getport: getport.o
$(CC) $(CFLAGS) -o getport getport.o -lopus -lm

mkmovie: mkmovie.o
$(CC) $(CFLAGS) -o mkmovie mkmovie.o -lm

clean:
rm -f *.o *~

tar:
rm -f baris-pace.tar baris-pace.tar.gz
tar -cf baris-pace.tar Makefile ChangeLog *.[ch] domount .gdbinit
gzip baris-pace.tar


Loading

0 comments on commit be837a6

Please sign in to comment.