TiDir V5.1a 20070701
--------------------

TiDir is a Windows program to browse through TI-99/4A files (v9t9 format),
Archive files (v9t9 format and created with Barry Boones archiver) and
.DSK files (v9t9 and PC99*) on a PC. TiDir is build on Windows XP and
should still runs on Win 95/98/ME/NT/2000 (Never tested on 95/ME by myself).

On startup TiDir can accept a path or name of a .DSK file on the command
line, i.e. 

	TIDIR c:\myfiles\somefile.dsk

if somefile.dsk is a TI-99/4A disk image, or

	TIDIR c:\mytifiles 
	
if the directory c:\mytifiles is a directory loaded with all sorts of
TI-99/4A files and disk images.

If a path is not given on the commandline, a browser window is opened
at startup of TiDir to browse to a path yourself.

It is also possible to create a shortcut for this program with all the
info its needs:

If tidir.exe is located in the subdirectory c:\utl and all your ti-files
are in the subdirectory c:\mytifiles, a shortcut could look like this:

	Path:		c:\utl\tidir.exe c:\mytifiles
	Start in:	c:\utl

TiDir saves information in a file called tidir.ini including the current
size and font and the positions and sizes of the maximum of 16 view
windows.


See also the TiDir help Tidir.chm for more info.



This is the fifth version of an universal TI-99/4A file viewer for the PC.
If you have ideas to add to this tool let me know.

Enjoy.


Fred G. Kaal
De Dadelboom 81
1911KK Uitgeest
The Netherlands
fgkaal@wanadoo.nl
 
Thanks to Jacques Groslouis, Paolo Bagnaresi and Joe Delekto for their
comments and ideas.   


v1.1a
	Shows a list of TI files in a subdirectory.

v2.1a
	
	Show dos name of a .DSK file with F3
	Show no_name!! if .DSK name is blank
	Added method to extract files from a .DSK
	Added menu functions for showing files in .DSK info and extracting files

v3.1a
	Showfile.cpp - check if not writting beyond end of text buffer
   	PC99Doad.cpp - added to also read PC99 dsk files
   			convert PC99 dsk file to a v9t9.dsk file
                  	show side track sector layout for a PC99 dsk file
   	Showfile.cpp - added PC99 dsk stuff
   			extract file replaces * or ? in ti-name to @
   	Tidir.cpp    - added PC99 dsk stuff
   	Viewer.cpp   - remembers position and size of the edit/view windows
   
v3.1b
	Showfile.cpp - Extract: File name can't contain \ / : * ? " < > |, will
   			be replaced by @
   	Tidir.CPP    -added VK_F2 to show FILE or DSK or DIR info
   			VK_F3 only view upperdir, subdir, *.DSK or file function.
   			A new opened view window is always on top.
   			Added icons for the buttons.
	Tooltip.CPP  - added to show tooltips when mouse cursor moves over buttons.
	
v3.1c	Pc99Doad.cpp - Reading the right sector from side 2.

v3.1d	Showfile.cpp - Convert TI-files and TI-files on .DSK to pc TXT files
	Doad.CPP - Calls PC99Doad if .DSK file on command line seems to be 
			a PC99 .DSK file

v3.2a Showfile.cpp - SaveDosFile replaced fprintf() for fputs(). fprintf is not
   a good choice if the data contains % characters.
   Added PCfilename in files-window

V3.2b Doad.cpp - Also get the number of Fixed records from file header.
   showfile.cpp - Conv_Rec_Fix takes the numer of Fixed recrords into acount
   while showing files.
   Conv_Rec_Fix & Conv_Rec_Var convert files in DISPMODE when converting for
   the viewer. After every record a 0x0D 0x0A pair is added. Every non printable
   is replaced by a '.'
   Conv_Rec_Fix convert files in RAWMODE when converting to dos file.
   No 0x0D 0x0A pair is added after everry record

V4.1a Archiver.cpp - Added. Now you can browse through archiver files.

V4.1b Tidir.cpp and Showfile.cpp - added code to convert TIFILES header to V9T9 header.
      Doad.cpp - Different kinds of TIFILES headers around:
		"\x7TIFILES\0" or "\x7TIFILES\x?" also with and without
		TI-name on offset 16. replaced strcmp(name,"TIFILES")
		for strncmp(name,"\x7TIFILES",8)
      Archive.cpp - Header length of TIFILES header is also 0x80 bytes and not 0x70!
		what was I thinking, and why did it work anyway?


V4.1c Showfile.cpp - Added TIFILES header conversion to V9T9 header (F7)
                     Added V9T9 header conversion to TIFILES header (F8)
      Tidir.cpp - When started without a commandline now opens a directory browser.
		  THe choosen directory is also saved in the ini file for next time.

V4.1d Showfile.cpp - If file is on a DSK or PC99 dsk, first extract file to a
                     V9T9 format file in a temp directory before showing.
                     Check for basic PROGRAM, basic INT/VAR 254 or basic DIS/VAR 163
                     and if true showfile as basic listing.

      Archiver.cpp - If going into an archive and this archive is on a DSK or a
                     PC99 DSK, first extract this file to a V9T9 format archive file
                     in a tmp directory before showing.
                     Unpack0() - Check if file is a GIF and return 100 if so.

      TiDir.cpp - Added F4 for showing files in hexadecimal form.
                  PCname, TIname, size, type, attr are now buttons to sort the
                  file list.
                  Find the windows tmp directory voor extracting archives or files
                  from DSK or PC99 dsk.

V4.2a Picture.cpp - Added routines to view TiArtist and Gif files.
		TiArtist seems to be program files NAME_P is picture data and
		NAME_C  is color data.
		Gif files can be viewed with some external viewer like
		irfanview (http://www.irfanview.com/index_inside.htm) add
		the the key to the path of to the viewer at section
		[TIDIR]
		picviewer=c:\somewhere\your_viewer.exe
		
V4.2b Tidir.cpp - If rootdir is # in tidir.ini file, the workingdir is used so 
		that tidir.exe can be autostarted from CD.

V4.2c Doad.cpp - If pathname is X:\\ than this is a root directory. Couldn't read
		from roots.
		Also check if pathname doesn't end with '\' before adding a '\'

V4.3a hdimg.cpp - Added functions to look into harddisk images, read and write images
		from and to physical TI-formated CF-cards or ZIP-disks etc.
      splash.cpp - added a splashscreen
      doad.cpp - Tidir now remembers where it was when returning from subdirectory.

      
V4.3b showfile.cpp - SaveTiFile() uses PC-name when converting "TIFILES" to V9T9 format
      picture.cpp  - Less strict when searching correspeding colortable of PAINT picture.
			checks if number of records=24 of a "name_c" file instead of length
			is precise >1800 bytes  

V4.3c showfile.cpp - GetChain() fixed for SD & DD .DSK files (not able to test HD yet)
			Seems that 3 bytes (6 nibbles) of datachain gives first sector
			number of chain and total number of sectors so far, i.e:
			First	Total	Filesector
			022	002	0 1 2
			027	008	3 4 5 6 7 8
			02F	00E	9 A B C D E
			
V5.1a Total new version. Double browse window. Added Cf7a+ support. Can
	create .DSK images and add files to it. Rearranged functionkeys.
	Multiple file copy/delete etc. Added Help file (Tidir.chm =compiled html)
	Removed # (see V4.2c) but you can use Tidir.exe .\ anyway for this
	purpose. etc etc.

V5.1b Repaired some minor glitches.

V5.2a confpcfile.cpp: added functions to convert PC file to all kinds of
	TI-files (thanks to Joe Delekto for this idea and comments).
      picture.cpp: added funtion ShowCharFile() to view those CHARA1 files.
      tidir.cpp(): added 5 recent used directories in the menu
      Repaired some minor glitches.
      
V5.2b picture.cpp: added functions for displaying myart files.
	tidir.cpp: clicking on path selectes side. shift-click and control-
	click selects range or individual files.