Re: Patch to add version to user preferences directory
David Savinkoff <[email protected]> Thu, 25 May 2017 11:23:13 -0600 (MDT)
| Newsgroups | gmane.games.torcs.general |
|---|---|
| Message-ID | <1054065092.5962908.1495732993413.JavaMail.zimbra@mailid.telus.net> |
----- sp4m wrote:
> Hi David
>
> Maybe I'm wrong but that mean that every time you upgrade torcs, you
> have to re-configure it to get your desired settings back?
(not necessarily)
For Linux, TORCS loses the settings when the compile
time is newer than the 'settings' time stamps.
(Also, is there a guarantee that old settings will
always work with new versions?)
If Windows does not lose the settings when upgrading,
all you have to do is copy the the old settings directory
and rename it to the new version.
(You should drive a 'quick race' with the old version and
a different car to 'time stamp' the 'settings' before copying
or executing the new version)
If you want to copy the old settings for the new version
in Linux, you must also 'touch' the files in the copied
directory before executing the new torcs.
(this gives the files new time stamps)
eg.
find .torcs-1.3.8 -type f -exec touch '{}' \;
> Personally, I would probably uninstall such a program after two versions
> and not touch it again. Unless there is an option to import the settings
> from an earlier version.
Having different versions of torcs allows you to test drive them.
(especially if you are using a compiler and source code)
>
> cheers
> Chris
>
> On 22.05.2017 19:28, David Savinkoff wrote:
> > ----- David Savinkoff wrote:
> >> Hi Bernhard,
> >>
> >> This tiny patch changes ~/.torcs to look like ~/.torcs-1.3.8 ; as an example.
> >> One advantage is that multiple versions of torcs can be used. Please consider.
> >>
> >> Sincerely,
> >> David Savinkoff
> >
> > This new patch does the same for Windows and Linux
> > (anyone, please test the windows version and report)
> >
> >
> >
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot