Re: Games in the Worx
- Posted by Ralf Nieuwenhuijsen <nieuwen at XS4ALL.NL> Dec 15, 1997
- 686 views
>Anyway, everytime I try to edit an .ex file from Windows 95 (I'm trying to >use TextGUI Editor, or ee.ex to be specific), it fails to load the program. >This is really weird and frustrating. Anybody else having the same problem? ee.ex expects to be in the current directory and wants to load its includes and fonts. If you bind it, it will at least load, but without the nice new dos-font. You could edit the code, that's what I did with a previous version, to detect its directory. (and go to there, after everything is loaded, go back to the old directory) Here's a bit of pseudo-code -- Check command_line () Does it contain any directory ? (only the 2nd argument) -- If not then the right directory is the current one, (or else the program could not have been loaded) -- Always save the current directory into a sequence -- Include everything you want, load your font -- Restore back to the old directory this could be expended by: -- when you supply a filename at the command_line (3rd argument or 4th or 5th, etc) -- Try the given path, if no path is given try the current, if that doesn't work either try the program (ee.ex)'s directory, and at last, try all directories in environ("PATH") Maybe a very nice suggestion, David Cuny ? I wish I still had the code, but it was overwritten by a new version of your textGUI. (and editor) Ralf