Message-ID: <8D53104ECD0CD211AF4000A0C9D60AE3013EFC1D@probe-2.acclaim-euro.net> From: Shawn Hargreaves To: djgpp AT delorie DOT com Subject: Re: Czech with Allegro, Roman Gebauer Date: Tue, 1 Jun 1999 11:20:30 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1460.8) Content-Type: text/plain Reply-To: djgpp AT delorie DOT com > I want to have only one data file and exe file maybe one cfg file, > but when I want to use czech keyboard a language I have to modify > allego.cfg which must be in directory with main exe file, then must > be there keyboard.dat and language.dat file and didn`t find any > other way how to solve that, how to use czech and have only one > data file without any cfg file. The Allegro config system is very flexible, and can easily do this. First you need to get rid of the allegro.cfg file, either by calling set_config_file() to point it at your own location (if your config data is read-only, you could add it to a datafile and then reference it with the special "datafile.dat#configfile.cfg" filename syntax). Or you could hardcode some config values into your program and pass them to the set_config_data() function (if you want to use only your own values), or to override_config_data() (if you want to add these values to whatever is already in allegro.cfg). Then, you need to make it find the keyboard mapping and translation files in whatever place you wanted to put them. Allegro looks in many difference places for these, only one of which is the standard datafiles. For example if your config file says "keyboard=cz", it will trying looking for a cz.cfg file, a keyboard.dat#cz_cfg object, etc. If you want to copy the mapping tables out of language.dat and keyboard.dat into some other datafile of your own, you can then reference it with a config variable along the lines of "keyboard=mydatafile.dat#myobjectname". Disclaimer: the chances are that nobody has every actually done something like this before, so bugs are very possible! Shawn Hargreaves.