| 582 | } |
| 583 | |
| 584 | static DWORD GetDefaultLocaleMask(const CASC_CSV_COLUMN & Column) |
| 585 | { |
| 586 | LPCSTR szTagEnd = Column.szValue + Column.nLength - 4; |
| 587 | LPCSTR szTagPtr; |
| 588 | DWORD dwLocaleValue; |
| 589 | DWORD dwLocaleMask = 0; |
| 590 | |
| 591 | // Go through the whole tag string |
| 592 | for(szTagPtr = Column.szValue; szTagPtr <= szTagEnd; szTagPtr++) |
| 593 | { |
| 594 | // Try to recognize the 4-char locale code |
| 595 | if((dwLocaleValue = GetLocaleValue(szTagPtr)) != CASC_LOCALE_NONE) |
| 596 | { |
| 597 | dwLocaleMask |= dwLocaleValue; |
| 598 | szTagPtr += 3; // Will be moved by 1 more at the end of the loop |
| 599 | } |
| 600 | } |
| 601 | return dwLocaleMask; |
| 602 | } |
| 603 | |
| 604 | static DWORD ParseFile_BuildInfo(TCascStorage * hs, CASC_CSV & Csv) |
| 605 | { |
no test coverage detected