mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-12 15:26:09 +00:00
CVar initialization order fix
This commit is contained in:
@@ -13,13 +13,6 @@ add_executable(hecl main.cpp
|
||||
../DataSpecRegistry.hpp
|
||||
)
|
||||
|
||||
list(APPEND DATA_SPEC_LIBS
|
||||
RetroDataSpec
|
||||
DNAMP3
|
||||
DNAMP2
|
||||
DNAMP1
|
||||
DNACommon)
|
||||
|
||||
if(NOT WIN32)
|
||||
list(APPEND PLAT_LIBS pthread)
|
||||
endif()
|
||||
|
||||
2
hecl/extern/Athena
vendored
2
hecl/extern/Athena
vendored
Submodule hecl/extern/Athena updated: 375a68c48a...9c880813ac
@@ -261,8 +261,10 @@ private:
|
||||
ProjectPath m_dotPath;
|
||||
ProjectPath m_cookedRoot;
|
||||
std::vector<ProjectDataSpec> m_compiledSpecs;
|
||||
bool m_valid = false;
|
||||
public:
|
||||
Project(const HECL::ProjectRootPath& rootPath);
|
||||
operator bool() const {return m_valid;}
|
||||
|
||||
/**
|
||||
* @brief Configuration file handle
|
||||
|
||||
@@ -23,16 +23,16 @@ CVar::CVar(const std::string& name, const std::string &value, const std::string
|
||||
}
|
||||
|
||||
CVar::CVar(const std::string& name, const std::string& value, const std::string& help, CVar::EFlags flags, CVarManager& parent)
|
||||
: m_mgr(parent)
|
||||
: m_mgr(parent)
|
||||
{
|
||||
// Unlock the cvar for writing if readonly
|
||||
unlock();
|
||||
|
||||
m_name= name;
|
||||
m_help = help;
|
||||
m_type = EType::Literal;
|
||||
m_flags = flags;
|
||||
m_allowedWrite = false;
|
||||
m_name = name;
|
||||
m_help = help;
|
||||
m_type = EType::Literal;
|
||||
|
||||
// Unlock the cvar for writing if readonly
|
||||
unlock();
|
||||
|
||||
fromLiteral(value);
|
||||
m_defaultValue = m_value;
|
||||
@@ -46,15 +46,15 @@ CVar::CVar(const std::string& name, const std::string& value, const std::string&
|
||||
CVar::CVar(const std::string& name, const atVec4f& value, const std::string& help, EFlags flags, CVarManager& parent)
|
||||
: m_mgr(parent)
|
||||
{
|
||||
// Unlock the cvar for writing if readonly
|
||||
unlock();
|
||||
|
||||
m_name= name;
|
||||
m_help = help;
|
||||
m_type = EType::Vec4f;
|
||||
m_flags = flags;
|
||||
m_allowedWrite = false;
|
||||
|
||||
// Unlock the cvar for writing if readonly
|
||||
unlock();
|
||||
|
||||
fromVec4f(value);
|
||||
m_defaultValue = m_value;
|
||||
|
||||
@@ -67,15 +67,15 @@ CVar::CVar(const std::string& name, const atVec4f& value, const std::string& hel
|
||||
CVar::CVar(const std::string& name, float value, const std::string& help, EFlags flags, CVarManager& parent)
|
||||
: m_mgr(parent)
|
||||
{
|
||||
// Unlock the cvar for writing if readonly
|
||||
unlock();
|
||||
|
||||
m_name= name;
|
||||
m_help = help;
|
||||
m_type = EType::Float;
|
||||
m_flags = flags;
|
||||
m_allowedWrite = false;
|
||||
|
||||
// Unlock the cvar for writing if readonly
|
||||
unlock();
|
||||
|
||||
fromFloat(value);
|
||||
m_defaultValue = m_value;
|
||||
|
||||
@@ -88,15 +88,15 @@ CVar::CVar(const std::string& name, float value, const std::string& help, EFlags
|
||||
CVar::CVar(const std::string& name, bool value, const std::string& help, CVar::EFlags flags, CVarManager& parent)
|
||||
: m_mgr(parent)
|
||||
{
|
||||
// Unlock the cvar for writing if readonly
|
||||
unlock();
|
||||
|
||||
m_name= name;
|
||||
m_help = help;
|
||||
m_type = EType::Boolean;
|
||||
m_flags = flags;
|
||||
m_allowedWrite = false;
|
||||
|
||||
// Unlock the cvar for writing if readonly
|
||||
unlock();
|
||||
|
||||
fromBoolean(value);
|
||||
m_defaultValue = m_value;
|
||||
|
||||
@@ -109,15 +109,15 @@ CVar::CVar(const std::string& name, bool value, const std::string& help, CVar::E
|
||||
CVar::CVar(const std::string& name, int value, const std::string& help, CVar::EFlags flags, CVarManager& parent)
|
||||
: m_mgr(parent)
|
||||
{
|
||||
// Unlock the cvar for writing if readonly
|
||||
unlock();
|
||||
|
||||
m_name= name;
|
||||
m_help = help;
|
||||
m_type = EType::Integer;
|
||||
m_flags = flags;
|
||||
m_allowedWrite = false;
|
||||
|
||||
// Unlock the cvar for writing if readonly
|
||||
unlock();
|
||||
|
||||
fromInteger(value);
|
||||
m_defaultValue = m_value;
|
||||
|
||||
|
||||
@@ -248,6 +248,7 @@ Project::Project(const ProjectRootPath& rootPath)
|
||||
|
||||
/* Compile current dataspec */
|
||||
rescanDataSpecs();
|
||||
m_valid = true;
|
||||
}
|
||||
|
||||
bool Project::addPaths(const std::vector<ProjectPath>& paths)
|
||||
|
||||
Reference in New Issue
Block a user