Skip to content

Commit

Permalink
Updated to support OpenCore 0.7.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavo-IM committed Jan 11, 2022
1 parent 4307ed6 commit 2e9f34e
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 45 deletions.
68 changes: 34 additions & 34 deletions OC_Gen-X.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Binary file not shown.
10 changes: 5 additions & 5 deletions OC_Gen-X/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="19455" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="B8D-0N-5wS">
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="19529" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="B8D-0N-5wS">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="19455"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="19529"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
Expand Down Expand Up @@ -718,7 +718,7 @@
<autoresizingMask key="autoresizingMask"/>
<subviews>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Wcy-uw-NdK">
<rect key="frame" x="337" y="108" width="123" height="33"/>
<rect key="frame" x="336" y="108" width="125" height="33"/>
<buttonCell key="cell" type="push" title="Generate EFI" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="jnc-4n-FlM">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
Expand Down Expand Up @@ -1827,8 +1827,8 @@ Add watchdog=0 to disable WatchDog timer (if you get accidental reboots).</strin
</tabViewItems>
</tabView>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="JJY-uW-evJ">
<rect key="frame" x="562" y="145" width="217" height="16"/>
<textFieldCell key="cell" lineBreakMode="clipping" title="Supported OpenCore version: 0.7.6" id="c09-ms-Iid">
<rect key="frame" x="563" y="145" width="216" height="16"/>
<textFieldCell key="cell" lineBreakMode="clipping" title="Supported OpenCore version: 0.7.7" id="c09-ms-Iid">
<font key="font" metaFont="system"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
Expand Down
22 changes: 16 additions & 6 deletions OC_Gen-X/Config/UEFI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ struct appleInput: Codable {
var graphicsInputMirroring: Bool = true
var keyInitialDelay: Int = 0
var keySubsequentDelay: Int = 5
var pointerPollMask: Int = -1
var pointerPollMax: Int = 80
var pointerPollMin: Int = 10
var pointerSpeedDiv: Int = 1
var pointerSpeedMul: Int = 1

Expand All @@ -59,6 +62,9 @@ struct appleInput: Codable {
case graphicsInputMirroring = "GraphicsInputMirroring"
case keyInitialDelay = "KeyInitialDelay"
case keySubsequentDelay = "KeySubsequentDelay"
case pointerPollMask = "PointerPollMask"
case pointerPollMax = "PointerPollMax"
case pointerPollMin = "PointerPollMin"
case pointerSpeedDiv = "PointerSpeedDiv"
case pointerSpeedMul = "PointerSpeedMul"
}
Expand All @@ -67,24 +73,28 @@ struct appleInput: Codable {
struct audio: Codable {
var audioCodec: Int = 0
var audioDevice: String = "PciRoot(0x0)/Pci(0x1b,0x0)"
var audioOut: Int = 0
var audioOutMask: Int = 0
var audioSupport: Bool = false
var minimumVolume: Int = 20
var disconnectHda: Bool = false
var maximumGain: Int = -15
var minimumAssistGain: Int = -30
var minimumAudibleGain: Int = -55
var playChime: String = "Auto"
var resetTrafficClass: Bool = false
var setupDelay: Int = 0
var volumeAmplifier: Int = 0

enum CodingKeys: String, CodingKey {
case audioCodec = "AudioCodec"
case audioDevice = "AudioDevice"
case audioOut = "AudioOut"
case audioOutMask = "AudioOutMask"
case audioSupport = "AudioSupport"
case minimumVolume = "MinimumVolume"
case disconnectHda = "DisconnectHda"
case maximumGain = "MaximumGain"
case minimumAssistGain = "MinimumAssistGain"
case minimumAudibleGain = "MinimumAudibleGain"
case playChime = "PlayChime"
case resetTrafficClass = "ResetTrafficClass"
case setupDelay = "SetupDelay"
case volumeAmplifier = "VolumeAmplifier"
}
}

Expand Down
Binary file modified OC_Gen-X/Drivers/OpenRuntime.efi
Binary file not shown.
Binary file modified OC_Gen-X/OC_Files/BOOTx64.efi
Binary file not shown.
Binary file modified OC_Gen-X/OC_Files/OpenCore.efi
Binary file not shown.
Binary file modified OC_Gen-X/OC_Files/macserial
Binary file not shown.

0 comments on commit 2e9f34e

Please sign in to comment.