Skip to content

Commit

Permalink
Fixed omm, removed ex-alo from debug repo, bug fixes and improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
EmeraldLoc committed Sep 23, 2022
1 parent 877637a commit 8e249d9
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 87 deletions.
3 changes: 3 additions & 0 deletions sm_osx/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"compression-type" : "lossless"
}
}
21 changes: 0 additions & 21 deletions sm_osx/Assets.xcassets/menu_bar_dark.imageset/Contents.json

This file was deleted.

52 changes: 0 additions & 52 deletions sm_osx/Assets.xcassets/menu_bar_dark.imageset/menu bar logo.svg

This file was deleted.

16 changes: 16 additions & 0 deletions sm_osx/Assets.xcassets/menu_bar_icon.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"images" : [
{
"filename" : "Menu Bar Icon.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true,
"template-rendering-intent" : "template"
}
}
12 changes: 12 additions & 0 deletions sm_osx/Assets.xcassets/menu_bar_icon.imageset/Menu Bar Icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion sm_osx/GlobalFunctions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import UniformTypeIdentifiers
import AppKit

struct CurrentVersion {
public let currentVersion = "v1.2.4\n"
public let currentVersion = "v1.2.5\n"
}

public func isArm() -> Bool {
Expand Down
10 changes: 8 additions & 2 deletions sm_osx/MenuBarCommands.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

import SwiftUI


struct MenuCommands: Commands {
@State var existingRepo = URL(string: "")
@Binding var updateAlert: Bool
@Binding var showAddRepos: Bool
@State var launcherRepos = [LauncherRepos]()
@StateObject var dataController: DataController
let moc = NSManagedObjectContext(concurrencyType: .mainQueueConcurrencyType)

Expand All @@ -27,8 +27,14 @@ struct MenuCommands: Commands {
}

var body: some Commands {

CommandMenu("Launch") {
let launcherRepos = fetchLaunchers()

Text("Entries").onAppear {
launcherRepos = fetchLaunchers()
}

Divider()

ForEach(launcherRepos) { LauncherRepo in
Button(LauncherRepo.title ?? "Unrecognized Repo") {
Expand Down
10 changes: 4 additions & 6 deletions sm_osx/RepoView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,10 @@ struct RepoView: View {
}
}

if devMode {
NavigationLink(destination: PatchesView(repo: .sm64ex_alo, repoView: $repoView)) {

Text("sm64ex-alo")
.lineLimit(nil)
}
NavigationLink(destination: PatchesView(repo: .sm64ex_alo, repoView: $repoView)) {

Text("sm64ex-alo")
.lineLimit(nil)
}

NavigationLink(destination: PatchesView(repo: .sm64ex_coop, repoView: $repoView)) {
Expand Down
2 changes: 1 addition & 1 deletion sm_osx/RomView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ struct RomView: View {

if repo == .sm64ex {
if patch.contains(.omm) {
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' && ")
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'; ")
}

if patch.contains(.highfps) {
Expand Down
7 changes: 3 additions & 4 deletions sm_osx/sm_osxApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct sm_osxApp: App {
}
}

/*

struct menuExtras: Scene {

@State var dataController: DataController
Expand Down Expand Up @@ -85,12 +85,11 @@ struct menuExtras: Scene {

Link("Check Latest Changelog", destination: URL(string: "https://github.com/EmeraldLoc/sm_osx/releases/latest")!)
} label: {
Image("menu_bar_dark")
Image("menu_bar_icon")
.resizable()
}
} else {
return WindowGroup { EmptyView() }
}
}
}

*/

0 comments on commit 8e249d9

Please sign in to comment.