2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 23:07:42 +00:00

Add ability to enable developer mode in-code

This commit is contained in:
2018-01-15 05:18:03 -08:00
parent 5c66ffc5df
commit 8cef2f5192
6 changed files with 28 additions and 17 deletions

View File

@@ -205,6 +205,16 @@ bool CVarManager::restartRequired() const
return false;
}
void CVarManager::setDeveloperMode(bool v, bool setDeserialized)
{
com_developer->unlock();
com_developer->m_value = v;
if (setDeserialized)
com_developer->m_wasDeserialized = true;
com_developer->lock();
com_developer->setModified();
}
bool CVarManager::suppressDeveloper()
{
bool oldDeveloper = m_developerMode;