Disable more debug features in Release build
This commit is contained in:
@@ -121,7 +121,7 @@ void UIScene_HelpAndOptionsMenu::updateComponents()
|
||||
|
||||
void UIScene_HelpAndOptionsMenu::handleReload()
|
||||
{
|
||||
#ifdef _FINAL_BUILD
|
||||
#ifndef _DEBUG // def _FINAL_BUILD // disable debug settings in release builds
|
||||
removeControl( &m_buttons[BUTTON_HAO_DEBUG], false);
|
||||
#else
|
||||
if(!app.DebugSettingsOn()) removeControl( &m_buttons[BUTTON_HAO_DEBUG], false);
|
||||
|
||||
@@ -61,7 +61,7 @@ UIScene_InGamePlayerOptionsMenu::UIScene_InGamePlayerOptionsMenu(int iPad, void
|
||||
|
||||
if(m_editingSelf)
|
||||
{
|
||||
#if (defined(_CONTENT_PACKAGE) || defined(_FINAL_BUILD) && !defined(_DEBUG_MENUS_ENABLED))
|
||||
#ifndef _DEBUG // (defined(_CONTENT_PACKAGE) || defined(_FINAL_BUILD) && !defined(_DEBUG_MENUS_ENABLED))
|
||||
removeControl( &m_checkboxes[eControl_Op], true );
|
||||
#else
|
||||
m_checkboxes[eControl_Op].init(L"DEBUG: Creative",eControl_Op,Player::getPlayerGamePrivilege(m_playerPrivileges,Player::ePlayerGamePrivilege_CreativeMode));
|
||||
|
||||
Reference in New Issue
Block a user