Skip to content

Commit 4b82658

Browse files
committed
chore: clean bridge.exe, main.c, and update README.md
1 parent 7606358 commit 4b82658

File tree

3 files changed

+2
-21
lines changed

3 files changed

+2
-21
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This binary allows other binaries running under Wine to communicate to Discord r
66

77
## Installation
88
Note: These instructions assume the usage of a [Wineskin](http://wineskin.urgesoftware.com/tiki-index.php) wrapper.
9-
1. Download the `bridge.exe` binary from this repository
9+
1. Download the `bridge.exe` binary from the [releases page](https://github.com/Techno-coder/macOS-wine-bridge/releases)
1010
2. Move the binary into the Wineskin `drive_c` folder
1111
3. Invoke the binary before the main application with a batch script:
1212
```bat

bridge.exe

-328 KB
Binary file not shown.

main.c

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,32 +22,13 @@ struct sockaddr_un {
2222
__declspec(naked) void __syscall() {
2323
__asm__ (
2424
"__syscall:\n\t"
25-
// "push rdi\n\t"
26-
// "push rsi\n\t"
27-
// "push rdx\n\t"
28-
// "push r10\n\t"
29-
// "push r8\n\t"
30-
// "push r9\n\t"
31-
3225
"add rax, 0x2000000\n\t"
33-
// "mov rdi, [rsp]\n\t"
34-
// "mov rsi, [rsp + 4]\n\t"
35-
// "mov rdx, [rsp + 8]\n\t"
36-
// "mov r10, [rsp + 12]\n\t"
37-
// "mov r8, [rsp + 16]\n\t"
38-
// "mov r9, [rsp + 16]\n\t"
3926

4027
"syscall\n\t"
4128
"jnc noerror\n\t"
4229
"neg rax\n\t"
43-
"noerror:\n\t"
4430

45-
// "pop r9\n\t"
46-
// "pop r8\n\t"
47-
// "pop r10\n\t"
48-
// "pop rdx\n\t"
49-
// "pop rsi\n\t"
50-
// "pop rdi\n\t"
31+
"noerror:\n\t"
5132
"ret"
5233
);
5334
}

0 commit comments

Comments
 (0)