mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
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
This commit is contained in:
parent
8e3e351015
commit
a58dc6fd30
87 changed files with 355 additions and 560 deletions
|
@ -28,6 +28,8 @@
|
|||
|
||||
#include <stdexcept>
|
||||
|
||||
#include <components/debug/debuglog.hpp>
|
||||
|
||||
#include "reader.hpp"
|
||||
//#include "writer.hpp"
|
||||
|
||||
|
@ -78,11 +80,9 @@ void ESM4::MiscItem::load(ESM4::Reader& reader)
|
|||
case ESM4::SUB_OBND:
|
||||
case ESM4::SUB_VMAD:
|
||||
case ESM4::SUB_RNAM: // FONV
|
||||
{
|
||||
// std::cout << "MISC " << ESM::printName(subHdr.typeId) << " skipping..." << std::endl;
|
||||
Log(Debug::Verbose) << "MISC " << ESM::printName(subHdr.typeId) << " skipping...";
|
||||
reader.skipSubRecordData();
|
||||
break;
|
||||
}
|
||||
default:
|
||||
throw std::runtime_error("ESM4::MISC::load - Unknown subrecord " + ESM::printName(subHdr.typeId));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue