mirror of
https://github.com/libretro/Play-.git
synced 2024-12-12 19:22:30 +00:00
27 lines
578 B
Plaintext
27 lines
578 B
Plaintext
#import "AudioSettingsViewController.h"
|
|
#include "../AppConfig.h"
|
|
#include "PreferenceDefs.h"
|
|
|
|
@implementation AudioSettingsViewController
|
|
|
|
-(id)init
|
|
{
|
|
if(self = [super initWithNibName: @"AudioSettingsView" bundle: nil])
|
|
{
|
|
|
|
}
|
|
return self;
|
|
}
|
|
|
|
-(void)viewWillAppear
|
|
{
|
|
[enableAudioOutputCheckBox setState: CAppConfig::GetInstance().GetPreferenceBoolean(PREFERENCE_AUDIO_ENABLEOUTPUT) ? NSOnState : NSOffState];
|
|
}
|
|
|
|
-(void)viewWillDisappear
|
|
{
|
|
CAppConfig::GetInstance().SetPreferenceBoolean(PREFERENCE_AUDIO_ENABLEOUTPUT, enableAudioOutputCheckBox.state == NSOnState);
|
|
}
|
|
|
|
@end
|