| 465 | } |
| 466 | |
| 467 | void Reader::getLocalizedString(std::string& str) |
| 468 | { |
| 469 | if (!hasLocalizedStrings()) |
| 470 | return (void)getZString(str); |
| 471 | |
| 472 | std::uint32_t stringId; // FormId |
| 473 | get(stringId); |
| 474 | if (stringId) // TES5 FoxRace, BOOK |
| 475 | getLocalizedStringImpl(FormId::fromUint32(stringId), str); |
| 476 | } |
| 477 | |
| 478 | // FIXME: very messy and probably slow/inefficient |
| 479 | void Reader::getLocalizedStringImpl(const FormId stringId, std::string& str) |