Skip to content

Commit

Permalink
chore: clean bridge.exe, main.c, and update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Techno-coder committed Oct 21, 2022
1 parent 7606358 commit 4b82658
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This binary allows other binaries running under Wine to communicate to Discord r

## Installation
Note: These instructions assume the usage of a [Wineskin](http://wineskin.urgesoftware.com/tiki-index.php) wrapper.
1. Download the `bridge.exe` binary from this repository
1. Download the `bridge.exe` binary from the [releases page](https://github.com/Techno-coder/macOS-wine-bridge/releases)
2. Move the binary into the Wineskin `drive_c` folder
3. Invoke the binary before the main application with a batch script:
```bat
Expand Down
Binary file removed bridge.exe
Binary file not shown.
21 changes: 1 addition & 20 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,32 +22,13 @@ struct sockaddr_un {
__declspec(naked) void __syscall() {
__asm__ (
"__syscall:\n\t"
// "push rdi\n\t"
// "push rsi\n\t"
// "push rdx\n\t"
// "push r10\n\t"
// "push r8\n\t"
// "push r9\n\t"

"add rax, 0x2000000\n\t"
// "mov rdi, [rsp]\n\t"
// "mov rsi, [rsp + 4]\n\t"
// "mov rdx, [rsp + 8]\n\t"
// "mov r10, [rsp + 12]\n\t"
// "mov r8, [rsp + 16]\n\t"
// "mov r9, [rsp + 16]\n\t"

"syscall\n\t"
"jnc noerror\n\t"
"neg rax\n\t"
"noerror:\n\t"

// "pop r9\n\t"
// "pop r8\n\t"
// "pop r10\n\t"
// "pop rdx\n\t"
// "pop rsi\n\t"
// "pop rdi\n\t"
"noerror:\n\t"
"ret"
);
}
Expand Down

0 comments on commit 4b82658

Please sign in to comment.