mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 04:22:34 +00:00
- better validation checks for CSV-based string files.
This commit is contained in:
parent
e0fb9a45e2
commit
71d7013255
1 changed files with 2 additions and 1 deletions
|
@ -193,7 +193,8 @@ bool FStringTable::readMacros(int lumpnum)
|
|||
|
||||
bool FStringTable::ParseLanguageCSV(int lumpnum, const TArray<uint8_t> &buffer)
|
||||
{
|
||||
if (memcmp(buffer.Data(), "default,", 8)) return false;
|
||||
if (buffer.Size() < 11) return false;
|
||||
if (strnicmp(buffer.Data(), "default,", 8) && strnicmp(buffer.Data(), "identifier,", 11 ) return false;
|
||||
auto data = parseCSV(buffer);
|
||||
|
||||
int labelcol = -1;
|
||||
|
|
Loading…
Reference in a new issue