mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 03:39:14 +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.
36 lines
857 B
C++
36 lines
857 B
C++
#ifndef CSM_TOOLS_GMSTCHECK_H
|
|
#define CSM_TOOLS_GMSTCHECK_H
|
|
|
|
#include <components/esm/loadgmst.hpp>
|
|
|
|
#include "../world/idcollection.hpp"
|
|
|
|
#include "../doc/stage.hpp"
|
|
|
|
namespace CSMTools
|
|
{
|
|
/// \brief VerifyStage: make sure that GMSTs are alright
|
|
class GmstCheckStage : public CSMDoc::Stage
|
|
{
|
|
public:
|
|
|
|
GmstCheckStage(const CSMWorld::IdCollection<ESM::GameSetting>& gameSettings);
|
|
|
|
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
|
|
|
|
private:
|
|
|
|
const CSMWorld::IdCollection<ESM::GameSetting>& mGameSettings;
|
|
bool mIgnoreBaseRecords;
|
|
|
|
std::string varTypeToString(ESM::VarType);
|
|
|
|
};
|
|
}
|
|
|
|
#endif
|