1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-29 21:45:33 +00:00

Remove useless logging

As suggested in https://gitlab.com/OpenMW/openmw/-/merge_requests/3086#note_1413234840
This commit is contained in:
jvoisin 2023-05-31 23:47:40 +02:00
parent a58dc6fd30
commit 0e33730f5d
72 changed files with 0 additions and 244 deletions

View file

@ -25,7 +25,6 @@
*/
#include "loadachr.hpp"
#include <components/debug/debuglog.hpp>
#include <stdexcept>
@ -95,7 +94,6 @@ void ESM4::ActorCharacter::load(ESM4::Reader& reader)
case ESM4::SUB_SCHR: // FO3
case ESM4::SUB_TNAM: // FO3
case ESM4::SUB_XATO: // FONV
Log(Debug::Verbose) << "ACHR " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -25,7 +25,6 @@
*/
#include "loadacre.hpp"
#include <components/debug/debuglog.hpp>
#include <stdexcept>
@ -80,7 +79,6 @@ void ESM4::ActorCreature::load(ESM4::Reader& reader)
// seems to occur only for dead bodies, e.g. DeadMuffy, DeadDogVicious
case ESM4::SUB_XRGD: // ragdoll
case ESM4::SUB_XRGB: // ragdoll biped
Log(Debug::Verbose) << "ACRE " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -26,8 +26,6 @@
*/
#include "loadacti.hpp"
#include <components/debug/debuglog.hpp>
#include <stdexcept>
#include "reader.hpp"
@ -89,7 +87,6 @@ void ESM4::Activator::load(ESM4::Reader& reader)
case ESM4::SUB_PNAM:
case ESM4::SUB_VMAD:
case ESM4::SUB_WNAM:
Log(Debug::Verbose) << "ACTI " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -26,8 +26,6 @@
*/
#include "loadalch.hpp"
#include <components/debug/debuglog.hpp>
#include <cstring>
#include <stdexcept>
@ -99,7 +97,6 @@ void ESM4::Potion::load(ESM4::Reader& reader)
case ESM4::SUB_MODS:
case ESM4::SUB_OBND:
case ESM4::SUB_ETYP: // FO3
Log(Debug::Verbose) << "ALCH " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -26,8 +26,6 @@
*/
#include "loadaloc.hpp"
#include <components/debug/debuglog.hpp>
#include <cstring>
#include <stdexcept>
@ -147,7 +145,6 @@ void ESM4::MediaLocationController::load(ESM4::Reader& reader)
}
std::cout << ss.str();
#else
Log(Debug::Verbose) << "ALOC " << ESM::printName(subHdr.typeId) << " skipping..." << subHdr.dataSize;
reader.skipSubRecordData();
#endif
break;

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -143,7 +141,6 @@ void ESM4::Ammunition::load(ESM4::Reader& reader)
case ESM4::SUB_OBND:
case ESM4::SUB_KSIZ:
case ESM4::SUB_KWDA:
Log(Debug::Verbose) << "AMMO " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -26,8 +26,6 @@
*/
#include "loadanio.hpp"
#include <components/debug/debuglog.hpp>
#include <stdexcept>
#include "reader.hpp"
@ -61,7 +59,6 @@ void ESM4::AnimObject::load(ESM4::Reader& reader)
break;
case ESM4::SUB_MODT: // TES5 only
case ESM4::SUB_MODS: // TES5 only
Log(Debug::Verbose) << "ANIO " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -26,8 +26,6 @@
*/
#include "loadappa.hpp"
#include <components/debug/debuglog.hpp>
#include <stdexcept>
#include "reader.hpp"
@ -82,7 +80,6 @@ void ESM4::Apparatus::load(ESM4::Reader& reader)
case ESM4::SUB_MODT:
case ESM4::SUB_OBND:
case ESM4::SUB_QUAL:
Log(Debug::Verbose) << "APPA " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -121,7 +119,6 @@ void ESM4::ArmorAddon::load(ESM4::Reader& reader)
case ESM4::SUB_MODS: // FO3 // FIXME: should group with MODL
case ESM4::SUB_MODD: // FO3 // FIXME: should group with MODL
case ESM4::SUB_OBND: // FO3
Log(Debug::Verbose) << "ARMA " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -198,7 +196,6 @@ void ESM4::Armor::load(ESM4::Reader& reader)
case ESM4::SUB_MO3S: // FO3
case ESM4::SUB_BNAM: // FONV
case ESM4::SUB_SNAM: // FONV
Log(Debug::Verbose) << "ARMO " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -67,12 +65,10 @@ void ESM4::AcousticSpace::load(ESM4::Reader& reader)
{
std::uint32_t dummy;
reader.get(dummy);
Log(Debug::Verbose) << "WNAM " << mEditorId << " " << dummy;
break;
}
case ESM4::SUB_BNAM: // TES5 reverb formid
case ESM4::SUB_OBND:
Log(Debug::Verbose) << "ASPC " << ESM::printName(subHdr.typeId) << " skipping..." << subHdr.dataSize;
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -104,7 +102,6 @@ void ESM4::Book::load(ESM4::Reader& reader)
case ESM4::SUB_CNAM:
case ESM4::SUB_INAM:
case ESM4::SUB_VMAD:
Log(Debug::Verbose) << "BOOK " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -29,8 +29,6 @@
#include <cstring>
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -95,7 +93,6 @@ void ESM4::BodyPartData::load(ESM4::Reader& reader)
case ESM4::SUB_RAGA: // ragdoll
case ESM4::SUB_MODS:
case ESM4::SUB_MODT:
Log(Debug::Verbose) << "BPTD " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -26,16 +26,10 @@
*/
#include "loadcell.hpp"
#ifdef NDEBUG // FIXME: debuggigng only
#undef NDEBUG
#endif
#include <cfloat> // FLT_MAX for gcc
#include <limits>
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "grouptype.hpp"
#include "reader.hpp"
// #include "writer.hpp"
@ -233,7 +227,6 @@ void ESM4::Cell::load(ESM4::Reader& reader)
case ESM4::SUB_XRNK: // Oblivion only?
case ESM4::SUB_XCET: // FO3
case ESM4::SUB_IMPF: // FO3 Zeta
Log(Debug::Verbose) << "CELL " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -26,8 +26,6 @@
*/
#include "loadclas.hpp"
#include <components/debug/debuglog.hpp>
#include <stdexcept>
#include "reader.hpp"
@ -57,7 +55,6 @@ void ESM4::Class::load(ESM4::Reader& reader)
reader.getZString(mIcon);
break;
case ESM4::SUB_DATA:
Log(Debug::Verbose) << "CLAS " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -92,7 +90,6 @@ void ESM4::Clothing::load(ESM4::Reader& reader)
case ESM4::SUB_MO2T:
case ESM4::SUB_MO3T:
case ESM4::SUB_MO4T:
Log(Debug::Verbose) << "CLOT " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -88,7 +86,6 @@ void ESM4::Container::load(ESM4::Reader& reader)
case ESM4::SUB_DMDL: // FONV
case ESM4::SUB_DMDT: // FONV
case ESM4::SUB_RNAM: // FONV
Log(Debug::Verbose) << "CONT " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -26,10 +26,6 @@
*/
#include "loadcrea.hpp"
#ifdef NDEBUG // FIXME: debuggigng only
#undef NDEBUG
#endif
#include <cstring>
#include <stdexcept>
#include <string>
@ -191,7 +187,6 @@ void ESM4::Creature::load(ESM4::Reader& reader)
case ESM4::SUB_DMDL: // FO3
case ESM4::SUB_DMDT: // FO3
case ESM4::SUB_COED: // FO3
Log(Debug::Verbose) << "CREA " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -29,8 +29,6 @@
#include <cstring>
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -98,11 +96,8 @@ void ESM4::Dialogue::load(ESM4::Reader& reader)
case ESM4::SUB_BNAM: // TES5
case ESM4::SUB_SNAM: // TES5
case ESM4::SUB_TIFC: // TES5
{
Log(Debug::Verbose) << "DIAL " << ESM::printName(subHdr.typeId) << " skipping..." << subHdr.dataSize;
reader.skipSubRecordData();
break;
}
default:
throw std::runtime_error("ESM4::DIAL::load - Unknown subrecord " + ESM::printName(subHdr.typeId));
}

View file

@ -31,8 +31,6 @@
#include <cstring>
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -91,7 +89,6 @@ void ESM4::DefaultObj::load(ESM4::Reader& reader)
}
break;
case ESM4::SUB_DNAM:
Log(Debug::Verbose) << "DOBJ " << ESM::printName(subHdr.typeId) << " skipping..." << subHdr.dataSize;
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -82,7 +80,6 @@ void ESM4::Door::load(ESM4::Reader& reader)
case ESM4::SUB_DSTF: // FO3
case ESM4::SUB_DMDL: // FO3
case ESM4::SUB_DMDT: // FO3
Log(Debug::Verbose) << "DOOR " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -75,7 +73,6 @@ void ESM4::Flora::load(ESM4::Reader& reader)
case ESM4::SUB_PNAM:
case ESM4::SUB_RNAM:
case ESM4::SUB_VMAD:
Log(Debug::Verbose) << "FLOR " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -79,7 +77,6 @@ void ESM4::Furniture::load(ESM4::Reader& reader)
case ESM4::SUB_VMAD:
case ESM4::SUB_WBDT:
case ESM4::SUB_XMRK:
Log(Debug::Verbose) << "FURN " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -60,7 +58,6 @@ void ESM4::GlobalVariable::load(ESM4::Reader& reader)
case ESM4::SUB_DATA:
case ESM4::SUB_OBND: // TES5
case ESM4::SUB_VMAD: // TES5
Log(Debug::Verbose) << "GLOB " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -58,7 +56,6 @@ void ESM4::Grass::load(ESM4::Reader& reader)
break;
case ESM4::SUB_MODT:
case ESM4::SUB_OBND:
Log(Debug::Verbose) << "GRAS " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -63,7 +61,6 @@ void ESM4::Hair::load(ESM4::Reader& reader)
reader.get(mBoundRadius);
break;
case ESM4::SUB_MODT:
Log(Debug::Verbose) << "HAIR " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -30,8 +30,6 @@
#include <optional>
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -95,7 +93,6 @@ void ESM4::HeadPart::load(ESM4::Reader& reader)
case ESM4::SUB_MODT:
case ESM4::SUB_RNAM:
case ESM4::SUB_CNAM:
Log(Debug::Verbose) << "HDPT " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -65,7 +63,6 @@ void ESM4::IdleAnimation::load(ESM4::Reader& reader)
break;
case ESM4::SUB_CTDA: // formId
case ESM4::SUB_DATA: // formId
Log(Debug::Verbose) << "IDLE " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -79,7 +77,6 @@ void ESM4::IdleMarker::load(ESM4::Reader& reader)
break;
}
case ESM4::SUB_OBND: // object bounds
Log(Debug::Verbose) << "IDLM " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -30,8 +30,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -59,11 +57,8 @@ void ESM4::ItemMod::load(ESM4::Reader& reader)
case ESM4::SUB_YNAM:
case ESM4::SUB_ZNAM:
case ESM4::SUB_DATA:
{
Log(Debug::Verbose) << "IMOD " << ESM::printName(subHdr.typeId) << " skipping..." << subHdr.dataSize;
reader.skipSubRecordData();
break;
}
default:
throw std::runtime_error("ESM4::IMOD::load - Unknown subrecord " + ESM::printName(subHdr.typeId));
}

View file

@ -29,8 +29,6 @@
#include <cstring>
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -196,7 +194,6 @@ void ESM4::DialogInfo::load(ESM4::Reader& reader)
case ESM4::SUB_ONAM: // TES5
case ESM4::SUB_QNAM: // TES5 for mScript
case ESM4::SUB_RNAM: // TES5
Log(Debug::Verbose) << "INFO " << ESM::printName(subHdr.typeId) << " skipping..." << subHdr.dataSize;
reader.skipSubRecordData();
break;
default:

View file

@ -29,8 +29,6 @@
#include <cstring>
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -109,7 +107,6 @@ void ESM4::Ingredient::load(ESM4::Reader& reader)
case ESM4::SUB_ZNAM:
case ESM4::SUB_ETYP: // FO3
{
Log(Debug::Verbose) << "INGR " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
}

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -79,7 +77,6 @@ void ESM4::Key::load(ESM4::Reader& reader)
case ESM4::SUB_KWDA:
case ESM4::SUB_OBND:
case ESM4::SUB_VMAD:
Log(Debug::Verbose) << "KEYM " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -26,10 +26,6 @@
*/
#include "loadland.hpp"
#ifdef NDEBUG // FIXME: debuggigng only
#undef NDEBUG
#endif
#include <cstdint>
#include <stdexcept>

View file

@ -31,8 +31,6 @@
#include <cfloat> // FLT_MAX for gcc
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -64,7 +62,6 @@ void ESM4::LightingTemplate::load(ESM4::Reader& reader)
reader.skipSubRecordData(); // throw?
break;
case ESM4::SUB_DALC: // TES5
Log(Debug::Verbose) << "LGTM " << ESM::printName(subHdr.typeId) << " skipping..." << subHdr.dataSize;
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -104,7 +102,6 @@ void ESM4::Light::load(ESM4::Reader& reader)
case ESM4::SUB_MODT:
case ESM4::SUB_OBND:
case ESM4::SUB_VMAD: // Dragonborn only?
Log(Debug::Verbose) << "LIGH " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -26,10 +26,6 @@
*/
#include "loadltex.hpp"
#ifdef NDEBUG // FIXME: debuggigng only
#undef NDEBUG
#endif
#include <stdexcept>
#include "reader.hpp"

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -87,11 +85,8 @@ void ESM4::LevelledCreature::load(ESM4::Reader& reader)
break;
}
case ESM4::SUB_OBND: // FO3
{
Log(Debug::Verbose) << "LVLC " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
}
default:
throw std::runtime_error("ESM4::LVLC::load - Unknown subrecord " + ESM::printName(subHdr.typeId));
}

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -83,7 +81,6 @@ void ESM4::LevelledItem::load(ESM4::Reader& reader)
case ESM4::SUB_OBND: // FO3/FONV
case ESM4::SUB_COED: // FO3/FONV
case ESM4::SUB_LVLG: // FO3/FONV
Log(Debug::Verbose) << "LVLI " << ESM::printName(subHdr.typeId) << " skipping..." << subHdr.dataSize;
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -95,7 +93,6 @@ void ESM4::LevelledNpc::load(ESM4::Reader& reader)
case ESM4::SUB_COED: // owner
case ESM4::SUB_OBND: // object bounds
case ESM4::SUB_MODT: // model texture data
Log(Debug::Verbose) << "LVLN " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -52,7 +50,6 @@ void ESM4::Material::load(ESM4::Reader& reader)
break;
case ESM4::SUB_DNAM:
case ESM4::SUB_DATA:
Log(Debug::Verbose) << "MATO " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -80,7 +78,6 @@ void ESM4::MiscItem::load(ESM4::Reader& reader)
case ESM4::SUB_OBND:
case ESM4::SUB_VMAD:
case ESM4::SUB_RNAM: // FONV
Log(Debug::Verbose) << "MISC " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -129,7 +127,6 @@ void ESM4::MediaSet::load(ESM4::Reader& reader)
reader.get(mTime4);
break;
case ESM4::SUB_DATA:
Log(Debug::Verbose) << "MSET " << ESM::printName(subHdr.typeId) << " skipping..." << subHdr.dataSize;
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -66,7 +64,6 @@ void ESM4::MovableStatic::load(ESM4::Reader& reader)
case ESM4::SUB_MODS:
case ESM4::SUB_FULL:
case ESM4::SUB_MODB:
Log(Debug::Verbose) << "MSTT " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -30,8 +30,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
//#include "formid.hpp"
#include "reader.hpp"
@ -58,7 +56,6 @@ void ESM4::Music::load(ESM4::Reader& reader)
case ESM4::SUB_WNAM: // TES5
case ESM4::SUB_PNAM: // TES5
case ESM4::SUB_TNAM: // TES5
Log(Debug::Verbose) << "MUSC " << ESM::printName(subHdr.typeId) << " skipping..." << subHdr.dataSize;
reader.skipSubRecordData();
break;
default:

View file

@ -26,10 +26,6 @@
*/
#include "loadnavi.hpp"
#ifdef NDEBUG // FIXME: debuggigng only
#undef NDEBUG
#endif
#include <stdexcept>
#include "reader.hpp"

View file

@ -233,10 +233,8 @@ void ESM4::NavMesh::load(ESM4::Reader& reader)
break;
}
case ESM4::SUB_XXXX:
{
reader.get(subSize);
break;
}
case ESM4::SUB_NVER: // FO3
case ESM4::SUB_DATA: // FO3
case ESM4::SUB_NVVX: // FO3
@ -246,7 +244,6 @@ void ESM4::NavMesh::load(ESM4::Reader& reader)
case ESM4::SUB_NVGD: // FO3
case ESM4::SUB_NVEX: // FO3
case ESM4::SUB_EDID: // FO3
Log(Debug::Verbose) << ESM::printName(reader.subRecordHeader().typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -63,7 +61,6 @@ void ESM4::Note::load(ESM4::Reader& reader)
case ESM4::SUB_TNAM:
case ESM4::SUB_XNAM:
case ESM4::SUB_OBND:
Log(Debug::Verbose) << "NOTE " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -30,8 +30,6 @@
#include <stdexcept>
#include <string> // getline
#include <components/debug/debuglog.hpp>
#include "formid.hpp"
#include "reader.hpp"
//#include "writer.hpp"
@ -274,7 +272,6 @@ void ESM4::Npc::load(ESM4::Reader& reader)
}
std::cout << ss.str();
#else
Log(Debug::Verbose) << "NPC_ " << ESM::printName(subHdr.typeId) << " skipping..." << subHdr.dataSize;
reader.skipSubRecordData();
#endif
break;
@ -313,7 +310,6 @@ void ESM4::Npc::load(ESM4::Reader& reader)
case ESM4::SUB_EAMT: // FO3
case ESM4::SUB_NAM4: // FO3
case ESM4::SUB_COED: // FO3
Log(Debug::Verbose) << "NPC_ " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -29,8 +29,6 @@
#include <cstring>
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -164,7 +162,6 @@ void ESM4::AIPackage::load(ESM4::Reader& reader)
case ESM4::SUB_CIS2: // TES5
case ESM4::SUB_VMAD: // TES5
case ESM4::SUB_TPIC: // TES5
Log(Debug::Verbose) << "PACK " << ESM::printName(subHdr.typeId) << " skipping..." << subHdr.dataSize;
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "formid.hpp" // FIXME: for mEditorId workaround
#include "reader.hpp"
//#include "writer.hpp"
@ -142,7 +140,6 @@ void ESM4::Pathgrid::load(ESM4::Reader& reader)
}
std::cout << ss.str();
#else
Log(Debug::Verbose) << "PGRD " << ESM::printName(subHdr.typeId) << " skipping..." << subHdr.dataSize;
reader.skipSubRecordData();
#endif
break;

View file

@ -30,8 +30,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -75,11 +73,8 @@ void ESM4::PlacedGrenade::load(ESM4::Reader& reader)
case ESM4::SUB_XIBS:
case ESM4::SUB_XSCL:
case ESM4::SUB_DATA:
{
Log(Debug::Verbose) << "PGRE " << ESM::printName(subHdr.typeId) << " skipping..." << subHdr.dataSize;
reader.skipSubRecordData();
break;
}
default:
throw std::runtime_error("ESM4::PGRE::load - Unknown subrecord " + ESM::printName(subHdr.typeId));
}

View file

@ -30,8 +30,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -52,11 +50,8 @@ void ESM4::PlaceableWater::load(ESM4::Reader& reader)
case ESM4::SUB_OBND:
case ESM4::SUB_MODL:
case ESM4::SUB_DNAM:
{
Log(Debug::Verbose) << "PWAT " << ESM::printName(subHdr.typeId) << " skipping..." << subHdr.dataSize;
reader.skipSubRecordData();
break;
}
default:
throw std::runtime_error("ESM4::PWAT::load - Unknown subrecord " + ESM::printName(subHdr.typeId));
}

View file

@ -29,8 +29,6 @@
#include <cstring>
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -158,7 +156,6 @@ void ESM4::Quest::load(ESM4::Reader& reader)
case ESM4::SUB_SPOR: // TES5
case ESM4::SUB_VMAD: // TES5
case ESM4::SUB_VTCK: // TES5
Log(Debug::Verbose) << "QUST " << ESM::printName(subHdr.typeId) << " skipping..." << subHdr.dataSize;
reader.skipSubRecordData();
break;
default:

View file

@ -29,8 +29,6 @@
#include <cstring>
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "formid.hpp"
#include "reader.hpp"
//#include "writer.hpp"
@ -686,7 +684,6 @@ void ESM4::Race::load(ESM4::Reader& reader)
case ESM4::SUB_MODT: // FO3
case ESM4::SUB_MODD: // FO3
case ESM4::SUB_ONAM: // FO3
Log(Debug::Verbose) << "RACE " << ESM::printName(subHdr.typeId) << " skipping..." << subHdr.dataSize;
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
// #include "writer.hpp"
@ -323,13 +321,10 @@ void ESM4::Reference::load(ESM4::Reader& reader)
case ESM4::SUB_XSRD: // FONV
case ESM4::SUB_WMI1: // FONV
case ESM4::SUB_XLRL: // Unofficial Skyrim Patch
{
// if (mFormId == 0x0007e90f) // XPRM XPOD
// if (mBaseObj == 0x17) //XPRM XOCP occlusion plane data XMBO bound half extents
Log(Debug::Verbose) << "REFR " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
}
default:
throw std::runtime_error("ESM4::REFR::load - Unknown subrecord " + ESM::printName(subHdr.typeId));
}

View file

@ -26,14 +26,8 @@
*/
#include "loadregn.hpp"
#ifdef NDEBUG // FIXME: debuggigng only
#undef NDEBUG
#endif
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -143,7 +137,6 @@ void ESM4::Region::load(ESM4::Reader& reader)
// RDAT skipping... following is grass
// RDGS skipping... unknown, maybe grass
Log(Debug::Verbose) << "REGN " << ESM::printName(subHdr.typeId) << " skipping..." << subHdr.dataSize;
reader.skipSubRecordData();
break;
default:

View file

@ -30,8 +30,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -54,7 +52,6 @@ void ESM4::StaticCollection::load(ESM4::Reader& reader)
case ESM4::SUB_MODT:
case ESM4::SUB_ONAM:
case ESM4::SUB_DATA:
Log(Debug::Verbose) << "SCOL " << ESM::printName(subHdr.typeId) << " skipping..." << subHdr.dataSize;
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -72,7 +70,6 @@ void ESM4::Scroll::load(ESM4::Reader& reader)
case ESM4::SUB_MODT:
case ESM4::SUB_SPIT:
case ESM4::SUB_CIS2:
Log(Debug::Verbose) << "SCRL " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -76,7 +74,6 @@ void ESM4::SoulGem::load(ESM4::Reader& reader)
case ESM4::SUB_KWDA:
case ESM4::SUB_NAM0:
case ESM4::SUB_OBND:
Log(Debug::Verbose) << "SLGM " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -75,7 +73,6 @@ void ESM4::SoundReference::load(ESM4::Reader& reader)
break;
case ESM4::SUB_CNAM: // CRC32 hash
case ESM4::SUB_FNAM: // unknown
Log(Debug::Verbose) << "SNDR " << ESM::printName(subHdr.typeId) << " skipping..." << subHdr.dataSize;
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -68,7 +66,6 @@ void ESM4::Sound::load(ESM4::Reader& reader)
case ESM4::SUB_GNAM: // FO3
case ESM4::SUB_HNAM: // FO3
case ESM4::SUB_RNAM: // FONV
Log(Debug::Verbose) << "SOUN " << ESM::printName(subHdr.typeId) << " skipping..." << subHdr.dataSize;
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
// #include "writer.hpp"
@ -77,7 +75,6 @@ void ESM4::Static::load(ESM4::Reader& reader)
case ESM4::SUB_MNAM:
case ESM4::SUB_BRUS: // FONV
case ESM4::SUB_RNAM: // FONV
Log(Debug::Verbose) << "STAT " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -72,7 +70,6 @@ void ESM4::TalkingActivator::load(ESM4::Reader& reader)
case ESM4::SUB_PNAM:
case ESM4::SUB_MODT: // texture file hash?
case ESM4::SUB_OBND:
Log(Debug::Verbose) << "TACT " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -84,7 +82,6 @@ void ESM4::Terminal::load(ESM4::Reader& reader)
case ESM4::SUB_TNAM:
case ESM4::SUB_OBND:
case ESM4::SUB_MODS: // FONV
Log(Debug::Verbose) << "TERM " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -26,14 +26,8 @@
*/
#include "loadtes4.hpp"
#ifdef NDEBUG // FIXME: debuggigng only
#undef NDEBUG
#endif
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "common.hpp"
#include "formid.hpp"
#include "reader.hpp"
@ -106,7 +100,6 @@ void ESM4::Header::load(ESM4::Reader& reader)
case ESM4::SUB_INCC:
case ESM4::SUB_OFST: // Oblivion only?
case ESM4::SUB_DELE: // Oblivion only?
Log(Debug::Verbose) << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -63,7 +61,6 @@ void ESM4::Tree::load(ESM4::Reader& reader)
case ESM4::SUB_OBND:
case ESM4::SUB_PFIG:
case ESM4::SUB_PFPC:
Log(Debug::Verbose) << "TREE " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -74,7 +72,6 @@ void ESM4::TextureSet::load(ESM4::Reader& reader)
case ESM4::SUB_DNAM:
case ESM4::SUB_DODT:
case ESM4::SUB_OBND: // object bounds
Log(Debug::Verbose) << "TXST " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -28,8 +28,6 @@
#include <stdexcept>
#include <components/debug/debuglog.hpp>
#include "reader.hpp"
//#include "writer.hpp"
@ -178,7 +176,6 @@ void ESM4::Weapon::load(ESM4::Reader& reader)
case ESM4::SUB_WNM6: // FONV
case ESM4::SUB_WNM7: // FONV
case ESM4::SUB_EFSD: // FONV DeadMoney
Log(Debug::Verbose) << "WEAP " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -26,7 +26,6 @@
*/
#include "loadwrld.hpp"
#include <components/debug/debuglog.hpp>
#include <stdexcept>
#include "reader.hpp"
@ -179,7 +178,6 @@ void ESM4::World::load(ESM4::Reader& reader)
case ESM4::SUB_XNAM: // FO3
case ESM4::SUB_IMPS: // FO3 Anchorage
case ESM4::SUB_IMPF: // FO3 Anchorage
Log(Debug::Verbose) << "WRLD " << ESM::printName(subHdr.typeId) << " skipping...";
reader.skipSubRecordData();
break;
default:

View file

@ -22,10 +22,6 @@
*/
#include "reader.hpp"
#ifdef NDEBUG // FIXME: debugging only
#undef NDEBUG
#endif
#undef DEBUG_GROUPSTACK
#include <iomanip>