mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-07-17 19:56:38 -04:00
some ini adjustment related to UT .
This commit is contained in:
parent
de8426f014
commit
fcd5b6b37f
4 changed files with 16 additions and 20 deletions
|
@ -38,22 +38,32 @@
|
|||
#include <ios>
|
||||
#include "IniHelper.h"
|
||||
|
||||
|
||||
using namespace std;
|
||||
|
||||
class SortDummy
|
||||
{
|
||||
public:
|
||||
bool operator() (const CString&, const CString&) const;
|
||||
bool operator()(const CString& x, const CString& y) const
|
||||
{
|
||||
// the length is more important than spelling (numbers!!!)...
|
||||
if (x.GetLength() < y.GetLength()) {
|
||||
return true;
|
||||
}
|
||||
if (x.GetLength() == y.GetLength()) {
|
||||
if (x < y) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
class CIniFileSection
|
||||
{
|
||||
public:
|
||||
|
||||
static const CString EmptyValue;
|
||||
public:
|
||||
|
||||
CIniFileSection();
|
||||
virtual ~CIniFileSection();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue