mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-10-28 07:27:09 +01: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:
1 parent
20ae383c42
commit
f27a195b6f
10 files changed
+1032
-100
No files matched your search
+1
-10
@@ -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