Skip to content

Commit 8e249d9

Browse files
committed
Fixed omm, removed ex-alo from debug repo, bug fixes and improvements.
1 parent 877637a commit 8e249d9

File tree

10 files changed

+48
-87
lines changed

10 files changed

+48
-87
lines changed

sm_osx/Assets.xcassets/Contents.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
"info" : {
33
"author" : "xcode",
44
"version" : 1
5+
},
6+
"properties" : {
7+
"compression-type" : "lossless"
58
}
69
}

sm_osx/Assets.xcassets/menu_bar_dark.imageset/Contents.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

sm_osx/Assets.xcassets/menu_bar_dark.imageset/menu bar logo.svg

Lines changed: 0 additions & 52 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "Menu Bar Icon.svg",
5+
"idiom" : "universal"
6+
}
7+
],
8+
"info" : {
9+
"author" : "xcode",
10+
"version" : 1
11+
},
12+
"properties" : {
13+
"preserves-vector-representation" : true,
14+
"template-rendering-intent" : "template"
15+
}
16+
}
Lines changed: 12 additions & 0 deletions
Loading

sm_osx/GlobalFunctions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import UniformTypeIdentifiers
1010
import AppKit
1111

1212
struct CurrentVersion {
13-
public let currentVersion = "v1.2.4\n"
13+
public let currentVersion = "v1.2.5\n"
1414
}
1515

1616
public func isArm() -> Bool {

sm_osx/MenuBarCommands.swift

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
import SwiftUI
99

10-
1110
struct MenuCommands: Commands {
1211
@State var existingRepo = URL(string: "")
1312
@Binding var updateAlert: Bool
1413
@Binding var showAddRepos: Bool
14+
@State var launcherRepos = [LauncherRepos]()
1515
@StateObject var dataController: DataController
1616
let moc = NSManagedObjectContext(concurrencyType: .mainQueueConcurrencyType)
1717

@@ -27,8 +27,14 @@ struct MenuCommands: Commands {
2727
}
2828

2929
var body: some Commands {
30+
3031
CommandMenu("Launch") {
31-
let launcherRepos = fetchLaunchers()
32+
33+
Text("Entries").onAppear {
34+
launcherRepos = fetchLaunchers()
35+
}
36+
37+
Divider()
3238

3339
ForEach(launcherRepos) { LauncherRepo in
3440
Button(LauncherRepo.title ?? "Unrecognized Repo") {

sm_osx/RepoView.swift

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,10 @@ struct RepoView: View {
4545
}
4646
}
4747

48-
if devMode {
49-
NavigationLink(destination: PatchesView(repo: .sm64ex_alo, repoView: $repoView)) {
50-
51-
Text("sm64ex-alo")
52-
.lineLimit(nil)
53-
}
48+
NavigationLink(destination: PatchesView(repo: .sm64ex_alo, repoView: $repoView)) {
49+
50+
Text("sm64ex-alo")
51+
.lineLimit(nil)
5452
}
5553

5654
NavigationLink(destination: PatchesView(repo: .sm64ex_coop, repoView: $repoView)) {

sm_osx/RomView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ struct RomView: View {
167167

168168
if repo == .sm64ex {
169169
if patch.contains(.omm) {
170-
commandsCompile.append("cd ~/SM64Repos/\(repo) && wget https://raw.githubusercontent.com/PeachyPeachSM64/sm64ex-omm/master/patch/omm.patch && wget https://raw.githubusercontent.com/PeachyPeachSM64/sm64ex-omm/nightly/omm.mk && git apply --reject --ignore-whitespace 'omm.patch' && ")
170+
commandsCompile.append("cd ~/SM64Repos/\(repo) && wget https://raw.githubusercontent.com/PeachyPeachSM64/sm64ex-omm/master/patch/omm.patch && wget https://raw.githubusercontent.com/PeachyPeachSM64/sm64ex-omm/nightly/omm.mk && wget https://raw.githubusercontent.com/PeachyPeachSM64/sm64ex-omm/nightly/omm_defines.mk && git apply --reject --ignore-whitespace 'omm.patch'; ")
171171
}
172172

173173
if patch.contains(.highfps) {

sm_osx/sm_osxApp.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ struct sm_osxApp: App {
3535
}
3636
}
3737

38-
/*
38+
3939
struct menuExtras: Scene {
4040

4141
@State var dataController: DataController
@@ -85,12 +85,11 @@ struct menuExtras: Scene {
8585

8686
Link("Check Latest Changelog", destination: URL(string: "https://github.com/EmeraldLoc/sm_osx/releases/latest")!)
8787
} label: {
88-
Image("menu_bar_dark")
88+
Image("menu_bar_icon")
89+
.resizable()
8990
}
9091
} else {
9192
return WindowGroup { EmptyView() }
9293
}
9394
}
9495
}
95-
96-
*/

0 commit comments

Comments
 (0)