home *** CD-ROM | disk | FTP | other *** search
- program LoadScreen;
- {┌──────────────────────────────── INFO ────────────────────────────────────┐}
- {│ File : LOADSCR.PAS │}
- {│ Author : Harald Thunem │}
- {│ Purpose : Load a VGA text screen image from file. │}
- {│ Updated : July 13 1992 │}
- {└──────────────────────────────────────────────────────────────────────────┘}
-
- {────────────────────────── Compiler directives ─────────────────────────────}
- {$A+ Word align data }
- {$B- Short-circuit Boolean expression evaluation }
- {$E- Disable linking with 8087-emulating run-time library }
- {$G+ Enable 80286 code generation }
- {$R- Disable generation of range-checking code }
- {$S- Disable generation of stack-overflow checking code }
- {$V- String variable checking }
- {$X- Disable Turbo Pascal's extended syntax }
- {$N+ 80x87 code generation }
- {$D- Disable generation of debug information }
- {────────────────────────────────────────────────────────────────────────────}
-
- uses Dos,
- Strings,
- Screen;
-
- var Path : PathStr;
- Dir : DirStr;
- Name : NameStr;
- Ext : ExtStr;
-
- begin
- WriteLn('Load Screen v2.0');
- WriteLn;
- if ParamCount<>1 then
- begin
- WriteLn('Wrong number of parameters.');
- WriteLn('Usage : LOADSCR filename[.ext]');
- Halt(1);
- end;
- Path := UpcaseStr(ParamStr(1));
- FSplit(Path,Dir,Name,Ext);
- if Ext='' then
- Path := Dir+Name+'.SCR';
- if LoadScreenFromFile(Path) then
- else WriteLn('Error loading screenfile ',Path);
- end.
-