mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 02:49:55 +00:00
9d61d76e92
Adds a boolean setting to the user preferences. This setting is locally saved to all OpenMW-CS check stages. When a verification is done, the setting is updated on setup for each check stage. If set to true, the boolean value is then used to skip the verification process for every base record - minus some special cases where, e.g., counters are to be set first. Related issue: - Fixes #4466: Editor: Add option to ignore base records when running verifier (https://gitlab.com/OpenMW/openmw/issues/4466) Tests: The changes were successfully tested in OpenMW-CS by creating faulty "Base" and "Modified" records for every record type (if possible) and, then, running the verifier with and without the option respectively.
31 lines
1 KiB
C++
31 lines
1 KiB
C++
#ifndef CSM_TOOLS_SOUNDGENCHECK_HPP
|
|
#define CSM_TOOLS_SOUNDGENCHECK_HPP
|
|
|
|
#include "../world/data.hpp"
|
|
|
|
#include "../doc/stage.hpp"
|
|
|
|
namespace CSMTools
|
|
{
|
|
/// \brief VerifyStage: make sure that sound gen records are internally consistent
|
|
class SoundGenCheckStage : public CSMDoc::Stage
|
|
{
|
|
const CSMWorld::IdCollection<ESM::SoundGenerator> &mSoundGens;
|
|
const CSMWorld::IdCollection<ESM::Sound> &mSounds;
|
|
const CSMWorld::RefIdCollection &mReferenceables;
|
|
bool mIgnoreBaseRecords;
|
|
|
|
public:
|
|
SoundGenCheckStage(const CSMWorld::IdCollection<ESM::SoundGenerator> &soundGens,
|
|
const CSMWorld::IdCollection<ESM::Sound> &sounds,
|
|
const CSMWorld::RefIdCollection &referenceables);
|
|
|
|
virtual int setup();
|
|
///< \return number of steps
|
|
|
|
virtual void perform(int stage, CSMDoc::Messages &messages);
|
|
///< Messages resulting from this stage will be appended to \a messages.
|
|
};
|
|
}
|
|
|
|
#endif
|