Commit Graph

12 Commits

Author SHA1 Message Date
Alexei Kotov 6b93479bd3 Get rid of ESM4::SubRecordTypes
All my homies hate ESM4::SubRecordTypes
2024-03-18 12:25:17 +03:00
Petr Mikheev 4beed29404 Changes required during review 2023-10-07 17:21:25 +02:00
Petr Mikheev be455469ba Read SUB_DNAM in ESM4::ArmorAddon and SUB_PNAM in ESM4::HeadPart 2023-10-07 17:21:25 +02:00
Alexei Kotov f7a85be504 Maybe load FO4 armor addon records
You still can't load into the game because of some unclear localization string problem.
But if getLocalizedString doesn't throw an exception, then it'll work. Sort of.
2023-08-17 02:14:22 +03:00
Petr Mikheev 5d54ca6fdb Refactor components/esm4 2023-08-05 13:12:24 +02:00
jvoisin 0e33730f5d Remove useless logging
As suggested in https://gitlab.com/OpenMW/openmw/-/merge_requests/3086#note_1413234840
2023-06-01 13:31:48 +02:00
jvoisin a58dc6fd30 Use the logging system instead of std::cout in components/esm4
- Remove debug-related includes
- Add some trivial missing includes
- Remove useless {}
- Move the known-but-skipped-records are the end of the switch-cases
- Always throw on unknown records
2023-06-01 13:31:48 +02:00
Petr Mikheev f09a689a4f Merge ESM::RefNum and ESM4::FormId 2023-04-09 00:23:32 +02:00
clang-format-bot ddb0522bbf
Apply clang-format to code base 2022-09-22 21:35:26 +03:00
elsid 4b28d51d5e
Remove virtual modifiers from ESM4 record functions
There is no need to have virtual functions.
2022-04-25 17:35:25 +02:00
elsid f516e34688
Remove used-defined constructors from ESM4 types
To avoid explicit initialization. It should happen in the load functions anyway.

* Move all non-zero initializations to corresponding class definition.
* Replace std::vector by std::array when it has constant size.
2022-02-22 20:11:45 +01:00
cc9cii ba3ae448d4 Initial import of esm4 by cc9cii 2022-01-31 08:58:45 +01:00