This program edits the theater.lst file in the current active F4 or AF directory.
Useage
..\lstupdate.exe [AF|F4] [+|-]description
[AF|F4]
Use AF to look for Allied Force installation
Use F4 to look for Falcon4 installation
[+|-]
Use + to add the description
Use - to remove the description
description
Describe the line to add or remove, e.g. panama\definitions\panama.tdf
Notes:
v1.0.2.2
- Fixed a bug where the commandline parameter was not being interpreted properly, resulting in a hang! Right royal f***-up this one. Am I trying to do too much with this...?
- Fixed a bug where similar lines would be deleted. For example, if you wanted to delete "europe\definitions\europe.tdf" and you had three entries - "..\europe.tdf", "..\europe2005.tdf", and "..\europe2010.tdf" - all three were deleted at once. While in practice this might not be a problem per se, it was a bug and it bothered me.
v1.0.2.1
- Improved error-checking to allow for changes in case of description (i.e. Proper, all lower-case, etc.) while retaining original casing as desired.
v1.0.2
- Changed name, dropped AF, now lstupdate.exe
- Added option to work with either Allied Force or Falcon4 installs.
- Added more error-checking.
v1.0.1
- Added error-checking to ensure no spaces were at the start of the description, and remove them if there is.
- Added a cleaning routine to remove blank lines and any crap from theater.lst that didn't look it should be there.
v1.0.0
- There should be no spaces between the [+|-] and the description.
- Use backslashes (\) to maintain commonality with LP default theaters.
- Example - ..\lstupdate.exe AF +panama\definitions\panama.tdf
Any problems, suggestions, etc. - (email removed)
I have tested it and it works nicely. Its okay now as it reads the Falcon 4 path from the registry directly, also it neatly cleans the theater.lst for unecessary empty spaces.
Just sent Snake Man version 1.0.2.1 which has better error-checking while allowing for description letter case to remain as intended (in previous versions everything was made lowercase). Although this was changed in 1.0.2 the error-checking could be tripped up when removing lines if the description wasn't exactly the same as the theater.lst entry.
All in all, 1.0.2.1 is a helluva lot more "user-friendly" than 1.0.0 ever was... but I'm like that see...
I've gotten a wee bit too complicated with this, I feel. Ultimately, if its used as designed - lstupdate.exe [AF|F4] [+|-]description - it works and works well. Unpredictable results may occur if the command-line parameters are not as designed. I've fell into the trap of trying to account for every error someone might ever make, and as a result its gotten too complicated. Perhaps I need to be less fussy...
Used as designed it will serve us well. If you do happen to come across an error WHICH IS PREVALENT WHEN COMMAND-LINE PARAMETERS ARE ENTERED AS DESIGNED, please let me know!