@@ -376,11 +376,6 @@ void CSettings::CreateGUI()
376376 m_pCheckBoxAllowScreenUpload->GetPosition (vecTemp, false );
377377 m_pCheckBoxAllowScreenUpload->AutoSize (NULL , 20 .0f );
378378
379- m_pCheckBoxAllowExternalSounds = reinterpret_cast <CGUICheckBox*>(pManager->CreateCheckBox (pTabMultiplayer, _ (" Allow external sounds" ), true ));
380- m_pCheckBoxAllowExternalSounds->SetPosition (CVector2D (vecTemp.fX , vecTemp.fY + 20 .0f ));
381- m_pCheckBoxAllowExternalSounds->GetPosition (vecTemp, false );
382- m_pCheckBoxAllowExternalSounds->AutoSize (NULL , 20 .0f );
383-
384379 m_pCheckBoxCustomizedSAFiles = reinterpret_cast <CGUICheckBox*>(pManager->CreateCheckBox (pTabMultiplayer, _ (" Use customized GTA:SA files" ), true ));
385380 m_pCheckBoxCustomizedSAFiles->SetPosition (CVector2D (vecTemp.fX , vecTemp.fY + 20 .0f ));
386381 m_pCheckBoxCustomizedSAFiles->GetPosition (vecTemp, false );
@@ -1218,7 +1213,6 @@ void CSettings::CreateGUI()
12181213 m_pComboFxQuality->SetSelectionHandler (GUI_CALLBACK (&CSettings::OnFxQualityChanged, this ));
12191214 m_pCheckBoxVolumetricShadows->SetClickHandler (GUI_CALLBACK (&CSettings::OnVolumetricShadowsClick, this ));
12201215 m_pCheckBoxAllowScreenUpload->SetClickHandler (GUI_CALLBACK (&CSettings::OnAllowScreenUploadClick, this ));
1221- m_pCheckBoxAllowExternalSounds->SetClickHandler (GUI_CALLBACK (&CSettings::OnAllowExternalSoundsClick, this ));
12221216 m_pCheckBoxCustomizedSAFiles->SetClickHandler (GUI_CALLBACK (&CSettings::OnCustomizedSAFilesClick, this ));
12231217 m_pCheckBoxWindowed->SetClickHandler (GUI_CALLBACK (&CSettings::OnWindowedClick, this ));
12241218 m_pCheckBoxDPIAware->SetClickHandler (GUI_CALLBACK (&CSettings::OnDPIAwareClick, this ));
@@ -1512,11 +1506,6 @@ void CSettings::UpdateVideoTab()
15121506 CVARS_GET (" allow_screen_upload" , bAllowScreenUploadEnabled);
15131507 m_pCheckBoxAllowScreenUpload->SetSelected (bAllowScreenUploadEnabled);
15141508
1515- // Allow external sounds
1516- bool bAllowExternalSoundsEnabled;
1517- CVARS_GET (" allow_external_sounds" , bAllowExternalSoundsEnabled);
1518- m_pCheckBoxAllowExternalSounds->SetSelected (bAllowExternalSoundsEnabled);
1519-
15201509 // Customized sa files
15211510 m_pCheckBoxCustomizedSAFiles->SetSelected (GetApplicationSettingInt (" customized-sa-files-request" ) != 0 );
15221511 m_pCheckBoxCustomizedSAFiles->SetVisible (GetApplicationSettingInt (" customized-sa-files-show" ) != 0 );
@@ -3344,10 +3333,6 @@ void CSettings::SaveData()
33443333 bool bAllowScreenUploadEnabled = m_pCheckBoxAllowScreenUpload->GetSelected ();
33453334 CVARS_SET (" allow_screen_upload" , bAllowScreenUploadEnabled);
33463335
3347- // Allow external sounds
3348- bool bAllowExternalSoundsEnabled = m_pCheckBoxAllowExternalSounds->GetSelected ();
3349- CVARS_SET (" allow_external_sounds" , bAllowExternalSoundsEnabled);
3350-
33513336 // Grass
33523337 bool bGrassEnabled = m_pCheckBoxGrass->GetSelected ();
33533338 CVARS_SET (" grass" , bGrassEnabled);
@@ -4351,24 +4336,6 @@ bool CSettings::OnAllowScreenUploadClick(CGUIElement* pElement)
43514336 return true ;
43524337}
43534338
4354- //
4355- // AllowExternalSounds
4356- //
4357- bool CSettings::OnAllowExternalSoundsClick (CGUIElement* pElement)
4358- {
4359- if (!m_pCheckBoxAllowExternalSounds->GetSelected () && !m_bShownAllowExternalSoundsMessage)
4360- {
4361- m_bShownAllowExternalSoundsMessage = true ;
4362- SString strMessage;
4363- strMessage +=
4364- _ (" Some scripts may play sounds, such as radio, from the internet."
4365- " \n\n Disabling this setting may decrease network"
4366- " \n bandwidth consumption.\n " );
4367- CCore::GetSingleton ().ShowMessageBox (_ (" EXTERNAL SOUNDS" ), strMessage, MB_BUTTON_OK | MB_ICON_INFO);
4368- }
4369- return true ;
4370- }
4371-
43724339//
43734340// CustomizedSAFiles
43744341//
0 commit comments