| 114 | NAMEChunkHandler() : ChunkHandler('NAME', CH_READONLY) {} |
| 115 | |
| 116 | void Load() const override |
| 117 | { |
| 118 | int index; |
| 119 | |
| 120 | while ((index = SlIterateArray()) != -1) { |
| 121 | if (index >= NUM_OLD_STRINGS) SlErrorCorrupt("Invalid old name index"); |
| 122 | size_t length = SlGetFieldLength(); |
| 123 | if (length > LEN_OLD_STRINGS) SlErrorCorrupt("Invalid old name length"); |
| 124 | |
| 125 | SlReadString(_old_name_array[index], length); |
| 126 | } |
| 127 | } |
| 128 | }; |
| 129 | |
| 130 | static const NAMEChunkHandler NAME; |
nothing calls this directly
no test coverage detected