Skip to content

Commit

Permalink
give up downgrading. fix toggle KeepAspect and UseTouchOverlay not wo…
Browse files Browse the repository at this point in the history
…rking
  • Loading branch information
palxex committed Jun 1, 2017
1 parent a36b804 commit 0bd9413
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ To compile, open *`Pal.xcodeproj`* with `Xcode`, and click Build. You need to ha
iOS
---

To compile, please first install dependencies via CocoaPods following the above instruments( only need do it once ), then open the project *`ios/SDLPal/SDLPal.xcworkplace`* with `Xcode`, and click Build.
To compile, please first install dependencies via CocoaPods following the above instruments, then open the project *`ios/SDLPal/SDLPal.xcworkplace`* with `Xcode`, and click Build.
```shell
$ cd iOS/SDLPAL
$ sudo gem install cocoapods
$ pod install
$ sudo gem install cocoapods # ONLY need do once on one machine
$ pod install # ONLY need do once in one repository
```

Android
Expand Down
6 changes: 6 additions & 0 deletions ios/SDLPal/SDLPal/SettingsTableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ - (void)readConfigs {
toggleStereo.on = gConfig.iAudioChannels == 2;
toggleSurroundOPL.on = gConfig.fUseSurroundOPL;

toggleTouchScreenOverlay.on = gConfig.fUseTouchOverlay;
toggleKeepAspect.on = gConfig.fKeepAspectRatio;

lblMusicType.text = MusicFormats[gConfig.eMusicType];
lblOPLType.text = OPLFormats[gConfig.eOPLType];
lblOPLRate.text = [NSString stringWithFormat:@"%d",gConfig.iOPLSampleRate];
Expand All @@ -235,6 +238,9 @@ - (void)saveConfigs {
gConfig.iAudioChannels = toggleStereo.isOn ? 2 : 1;
gConfig.fUseSurroundOPL = toggleSurroundOPL.isOn;

gConfig.fKeepAspectRatio = toggleKeepAspect.isOn;
gConfig.fUseTouchOverlay = toggleTouchScreenOverlay.isOn;

gConfig.eMusicType = (MUSICTYPE)[MusicFormats indexOfObject:lblMusicType.text];
gConfig.eOPLType = (OPLTYPE )[OPLFormats indexOfObject:lblOPLType.text];
gConfig.iOPLSampleRate = [lblOPLRate.text intValue];
Expand Down

0 comments on commit 0bd9413

Please sign in to comment.