mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-16 07:07:13 +02:00
Fixed the INI compilation on Linux by reverting to the original library.
Fixed an infinite loop in the parsing of command specification strings. Added the option to retrieve common configs with a fall back value if they don't exist. Few other minor changes.
This commit is contained in:
@ -187,15 +187,6 @@ public:
|
||||
m_List.sort(DocumentRef::Type::Entry::LoadOrder());
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Sort the entries by their load order but empty name always goes first.
|
||||
*/
|
||||
void SortByLoadOrderEmptyFirst()
|
||||
{
|
||||
if (!m_List.empty())
|
||||
m_List.sort(DocumentRef::Type::Entry::LoadOrderEmptyFirst());
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Retrieve the string value of the current element item.
|
||||
*/
|
||||
@ -214,4 +205,4 @@ public:
|
||||
|
||||
} // Namespace:: SqMod
|
||||
|
||||
#endif // _SQINI_ENTRIES_HPP_
|
||||
#endif // _SQINI_ENTRIES_HPP_
|
||||
|
@ -210,7 +210,6 @@ void RegisterAPI(HSQUIRRELVM vm)
|
||||
.Func(_SC("Sort"), &Entries::Sort)
|
||||
.Func(_SC("SortByKeyOrder"), &Entries::SortByKeyOrder)
|
||||
.Func(_SC("SortByLoadOrder"), &Entries::SortByLoadOrder)
|
||||
.Func(_SC("SortByLoadOrderEmptyFirst"), &Entries::SortByLoadOrderEmptyFirst)
|
||||
);
|
||||
|
||||
inins.Bind(_SC("Document"), Class< Document, NoCopy< Document > >(vm, _SC("SqIniDocument"))
|
||||
|
Reference in New Issue
Block a user