UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Open Feature request #4110 sorted config.cfg
action_vote_minus_faded.png
1
Votes
action_vote_plus_faded.png
Go to the next issue (open or closed)
Go to the next open issue
mattn (@tlh2000) has been working on this issue since January 28, 2013 (20:49)
Issue basics
  • Type of issue
    Feature request
  • Category
    Engine
  • Targetted for
    Not determined
  • Status
    Accepted
  • Priority
    1. Very low
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
Issue details
  • Complexity
    Simple
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
[http://sourceforge.net/p/ufoai/feature-requests/626 Item 626] imported from sourceforge.net tracker on 2013-01-28 20:23:02

I was trying to compare two config.cfg files recently and found that the order of the cvars changes with every save.
==> no way to easily compare ==> bad for bug hunting.

I tried to change that myself and found the code where the cvars are written, but no place where they're loaded from file (I'd suggest to do the sorting at load time).
===== Comments Ported from Sourceforge =====

====== natewr (2013-01-22 15:14:14.475000) ======

- **status**: open --> accepted
- **priority**: 1 --> 3

====== aduke1 (2013-01-28 03:18:16.329000) ======

This can be karked as an "easy contribution" as Nate suggested.

thl2000 also suggested to do it at *save time*. The function Cvar_WriteVariables() in cvar.cpp is the place,
A possible Approach would be to abuse the hash_next ptr in cvar_t (which is no longer needed at that point in time) to create a sorted list and then print that.
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif