Skip to content

Commit

Permalink
Add disable-swift patch
Browse files Browse the repository at this point in the history
  • Loading branch information
uiryuu committed Jun 4, 2024
1 parent bc4c2bd commit fc95246
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mpv-iina.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ class MpvIina < Formula
url "https://raw.githubusercontent.com/iina/homebrew-mpv-iina/master/other/14229.patch"
sha256 "aa5cbc43a8fb6ac8cf89560ab02924602971e80a9a42ec3d72bcebfa7deb0e0e"
end

patch do
url "https://raw.githubusercontent.com/iina/homebrew-mpv-iina/master/other/disable-swift.patch"
sha256 "391674506aea158026dd9a3c6972a5b2855b2c30cde1b0f4ee19b95d53f03ed8"
end
end

def install
Expand Down
37 changes: 37 additions & 0 deletions other/disable-swift.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
diff --git a/osdep/mac/app_bridge.m b/osdep/mac/app_bridge.m
index bf39efe603..6b99d96177 100644
--- a/osdep/mac/app_bridge.m
+++ b/osdep/mac/app_bridge.m
@@ -93,27 +93,27 @@ const struct m_sub_options *app_bridge_vo_conf(void)

void cocoa_init_media_keys(void)
{
- [[AppHub shared] startRemote];
+ return;
}

void cocoa_uninit_media_keys(void)
{
- [[AppHub shared] stopRemote];
+ return;
}

void cocoa_set_input_context(struct input_ctx *input_context)
{
- [[AppHub shared] initInput:input_context];
+ return;
}

void cocoa_set_mpv_handle(struct mpv_handle *ctx)
{
- [[AppHub shared] initMpv:ctx];
+ return;
}

void cocoa_init_cocoa_cb(void)
{
- [[AppHub shared] initCocoaCb];
+ return;
}

int cocoa_main(int argc, char *argv[])

0 comments on commit fc95246

Please sign in to comment.