Skip to content

Commit

Permalink
[Skins] Adds an option to ignore skin inputFrames
Browse files Browse the repository at this point in the history
- Fixes GBC skins created before mGBA was added
  • Loading branch information
LitRitt committed Mar 26, 2024
1 parent 3c6ccd6 commit b2a8671
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cores/DeltaCore
5 changes: 3 additions & 2 deletions Ignited/Emulation/GameViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1268,10 +1268,11 @@ private extension GameViewController

func updateControllerSkinCustomization()
{
self.controllerView.translucentControllerSkinOpacity = Settings.controllerFeatures.skin.opacity
guard let emulatorCore = self.emulatorCore else { return }

self.controllerView.translucentControllerSkinOpacity = Settings.controllerFeatures.skin.opacity
self.controllerView.isDiagonalDpadInputsEnabled = Settings.controllerFeatures.skin.diagonalDpad

self.ignoreInputFrames = Settings.controllerFeatures.skin.ignoreInputFrames && emulatorCore.deltaCore.gameType != .ds
self.backgroundColor = self.isEditingOverscanInsets ? UIColor.red : Settings.controllerFeatures.skin.colorMode.uiColor
}

Expand Down
4 changes: 4 additions & 0 deletions Ignited/Features/Controllers/SkinOptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ struct SkinOptions
description: "Enable to allow diagonal inputs on the corners of the D-Pad.")
var diagonalDpad: Bool = true

@Option(name: "Ignore Input Frames",
description: "Enable to ignore the inputFrame provided by skins. Fixes improper cropping on legacy skins. Does not affect DS skins.")
var ignoreInputFrames: Bool = true

@Option(name: "Restore Defaults",
description: "Reset all options to their default values.",
detailView: { _ in
Expand Down

0 comments on commit b2a8671

Please sign in to comment.