home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Killer
/
Game_Killer.bin
/
251.FIXPORTS.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-07-08
|
1KB
|
51 lines
program FixPorts;
uses
memtypes, quickdraw;
{$I headers.inc}
const
Version = ' mac 0.85a';
var
ext,
mss : string;
othername,
BBSName : string;
n : integer;
f, g : text;
space : TheVoid;
{$I QUEUE.INC }
{$I status.inc }
{$I misc.inc }
{$I gsdata.inc }
var
s : integer;
detected : boolean;
begin {main}
writeln('Tradewars Data Base generator: version', Version);
writeln( author );
writeln( source );
writeln;
InitSpace( Space );
BBSName := '';
GetData( space, BBSName );
detected := false;
for s := 1 to MaxSector do
if (space.sectors[s].porttype = NotAPort) and (portNumber( s ) <> 0) then
begin
detected := true;
writeln( 'Record but no status for ', s );
end
else if (space.sectors[s].porttype <> NotAPort)
and (space.sectors[s].porttype <> Class0)
and (portNumber(s)=0) then
begin
writeln( 'sector ', s, ' declared a port, with no port information');
detected := true;
end;
if not detected then
writeln('No errors detected.');
readln;
end.