Remove lots of unused things from CrySystem (#765)
Remove lots of unused things from CrySystem
This commit is contained in:
@@ -424,7 +424,6 @@ AZ::Outcome<void, AZStd::string> CGameEngine::Init(
|
||||
sip.pLogCallback = &m_logFile;
|
||||
sip.sLogFileName = "@log@/Editor.log";
|
||||
sip.pUserCallback = m_pSystemUserCallback;
|
||||
sip.pValidator = GetIEditor()->GetErrorReport(); // Assign validator from Editor.
|
||||
|
||||
if (sInCmdLine)
|
||||
{
|
||||
|
||||
@@ -779,36 +779,6 @@ bool GraphicsSettingsDialog::CVarChanged(AZStd::any val, const char* cvarName, i
|
||||
m_cVarTracker[cvarName].fileVals[specLevel].editedValue = val;
|
||||
}
|
||||
|
||||
// If changing cvar from the platform cfg file currently running, set cvar
|
||||
if (GetISystem()->GetConfigPlatform() == m_currentPlatform && GetISystem()->GetConfigSpec() == specLevel + 1)
|
||||
{
|
||||
if (ICVar* cvar = gEnv->pConsole->GetCVar(cvarName))
|
||||
{
|
||||
int type = cvar->GetType();
|
||||
if (type == CVAR_INT)
|
||||
{
|
||||
int newValue;
|
||||
if (AZStd::any_numeric_cast<int>(&val, newValue))
|
||||
{
|
||||
cvar->Set(newValue);
|
||||
}
|
||||
}
|
||||
else if (type == CVAR_FLOAT)
|
||||
{
|
||||
float newValue;
|
||||
if (AZStd::any_numeric_cast<float>(&val, newValue))
|
||||
{
|
||||
cvar->Set(newValue);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
AZStd::string* currValue = AZStd::any_cast<AZStd::string>(&val);
|
||||
cvar->Set(currValue->c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Checking if the newly edited value is equal to the overwritten value
|
||||
cvarInfo = AZStd::make_pair(azcvarName, m_cVarTracker[cvarName]);
|
||||
if (CheckCVarStatesForDiff(&cvarInfo, specLevel, EDITED_OVERWRITTEN_COMPARE))
|
||||
|
||||
@@ -1584,16 +1584,9 @@ void CEditorImpl::AddUIEnums()
|
||||
m_pUIEnumsDatabase->SetEnumStrings("ShadowMinResPercent", types);
|
||||
}
|
||||
|
||||
void CEditorImpl::SetEditorConfigSpec(ESystemConfigSpec spec, ESystemConfigPlatform platform)
|
||||
void CEditorImpl::SetEditorConfigSpec(ESystemConfigSpec spec, [[maybe_unused]]ESystemConfigPlatform platform)
|
||||
{
|
||||
gSettings.editorConfigSpec = spec;
|
||||
if (m_pSystem->GetConfigSpec(true) != spec || m_pSystem->GetConfigPlatform() != platform)
|
||||
{
|
||||
m_pSystem->SetConfigSpec(spec, platform, true);
|
||||
gSettings.editorConfigSpec = m_pSystem->GetConfigSpec(true);
|
||||
GetObjectManager()->SendEvent(EVENT_CONFIG_SPEC_CHANGE);
|
||||
AzToolsFramework::EditorEvents::Bus::Broadcast(&AzToolsFramework::EditorEvents::OnEditorSpecChange);
|
||||
}
|
||||
}
|
||||
|
||||
ESystemConfigSpec CEditorImpl::GetEditorConfigSpec() const
|
||||
|
||||
@@ -272,21 +272,6 @@ namespace Path
|
||||
return str;
|
||||
}
|
||||
|
||||
//! Set the current mod NAME for editing purposes. After doing this the above functions will take this into account
|
||||
//! name only, please!
|
||||
void SetModName(const char* input)
|
||||
{
|
||||
if (
|
||||
(!input) ||
|
||||
((gEnv) && (gEnv->pSystem) && (!gEnv->pSystem->IsMODValid(input))) // we can only validate
|
||||
)
|
||||
{
|
||||
AZ_Warning("PathUtil", false, "Invalid mod name supplied to SetModName: %s - ignored.", input ? input : "(NULL)");
|
||||
return;
|
||||
}
|
||||
g_currentModName = input;
|
||||
}
|
||||
|
||||
//! Get the root folder (in source control or other writable assets) where you should save root data.
|
||||
AZStd::string GetEditingRootFolder()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user