@@ -173,18 +173,12 @@ lazy_static! {
173173 Setting :: new( "Bottom screen scale" , "Press PS + Circle to cycle screen sizes" , ScreenLayout :: scale_settings_value( ) , true ) ,
174174 Setting :: new( "Language" , "Some ROMs only come with one language. Make sure yours is multilingual." , Language :: iter( ) . into( ) , false ) ,
175175 Setting :: new( "Joystick as D-Pad" , "" , SettingValue :: Bool ( true ) , true ) ,
176- Setting :: new(
177- "Arm7 jit block validation" ,
178- "Only needed for nds homebrew. Commercial games usually don't need to have this enabled." ,
179- SettingValue :: Bool ( false ) ,
180- false ,
181- ) ,
182176 ] ,
183177 ) ;
184178}
185179
186180#[ derive( Clone ) ]
187- pub struct Settings ( [ Setting ; 11 ] ) ;
181+ pub struct Settings ( [ Setting ; 10 ] ) ;
188182
189183#[ repr( u8 ) ]
190184enum SettingIndices {
@@ -198,7 +192,6 @@ enum SettingIndices {
198192 BottomScreenScale ,
199193 Language ,
200194 JoystickAsDpad ,
201- Arm7BlockValidation ,
202195}
203196
204197impl Settings {
@@ -229,10 +222,6 @@ impl Settings {
229222 unsafe { Arm7Emu :: from ( self . 0 [ SettingIndices :: Arm7Emu as usize ] . value . as_list ( ) . unwrap_unchecked ( ) . 0 as u8 ) }
230223 }
231224
232- pub fn arm7_block_validation ( & self ) -> bool {
233- unsafe { self . 0 [ SettingIndices :: Arm7BlockValidation as usize ] . value . as_bool ( ) . unwrap_unchecked ( ) }
234- }
235-
236225 pub fn audio_stretching ( & self ) -> bool {
237226 unsafe { self . 0 [ SettingIndices :: AudioStretching as usize ] . value . as_bool ( ) . unwrap_unchecked ( ) }
238227 }
@@ -258,11 +247,7 @@ impl Settings {
258247 * self . 0 [ SettingIndices :: Arm7Emu as usize ] . value . as_list_mut ( ) . unwrap ( ) . 0 = value as usize
259248 }
260249
261- pub fn set_arm7_block_validation ( & mut self , value : bool ) {
262- * self . 0 [ SettingIndices :: Arm7BlockValidation as usize ] . value . as_bool_mut ( ) . unwrap ( ) = value;
263- }
264-
265- pub fn get_all_mut ( & mut self ) -> & mut [ Setting ; 11 ] {
250+ pub fn get_all_mut ( & mut self ) -> & mut [ Setting ; 10 ] {
266251 & mut self . 0
267252 }
268253}
0 commit comments