Skip to content

Commit 168e175

Browse files
committed
- Fixed that signals are bound with the new Nim version (1.2.6).
Info: Caused by this pr nim-lang/Nim#13199 - Updated readme to clone the 1.2 branch. - Updated linux dependency version. Signed-off-by: Dankr4d <[email protected]>
1 parent f533ffa commit 168e175

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

BF2142Unlocker.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ requires "winim >= 3.4.0"
1414
when defined(windows):
1515
requires "winregistry >= 0.2.1"
1616
when defined(linux):
17-
requires "psutil >= 0.5.7"
17+
requires "psutil >= 0.6.0"
1818
##
1919

2020
### imports

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ BF2142Unlocker emulates the necessary login and unlock server to be able to play
5959
- `pacman -Syu # Upgrade all packages`
6060
- `pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-openssl mingw-w64-x86_64-gtk3 mingw-w64-x86_64-python3-gobject make tar git`
6161
- `cd /c/Users/$USER; mkdir projects; cd projects;`
62-
- `git clone https://github.com/nim-lang/Nim.git`
62+
- `git clone -b version-1-2 https://github.com/nim-lang/Nim.git`
6363
- `cd Nim`
6464
- `./build_all.bat # Build nim and all tools (like nimble)`
6565
- `export PATH="$PATH:/c/Users/$USER/projects/Nim/bin"`

signal.nim

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
11
import macros
22

33
macro signalNoCheck*(eventProc: untyped): untyped =
4-
# {.exportc, cdecl.}
4+
# {.exportc, cdecl, dynlib.}
55
let pragmas: NimNode = nnkPragma.newTree(
66
newIdentNode("exportc"),
77
newIdentNode("cdecl"),
8+
newIdentNode("dynlib"),
89
)
9-
when defined(windows):
10-
pragmas.add(newIdentNode("dynlib"))
1110
eventProc.pragma = pragmas
1211
result = quote do:
1312
`eventProc`
1413

1514
macro signal*(eventProc: untyped): untyped =
16-
# {.exportc, cdecl.}
15+
# {.exportc, cdecl, dynlib.}
1716
let pragmas: NimNode = nnkPragma.newTree(
1817
newIdentNode("exportc"),
1918
newIdentNode("cdecl"),
19+
newIdentNode("dynlib"),
2020
)
21-
when defined(windows):
22-
pragmas.add(newIdentNode("dynlib"))
2321
# if not windowShown: return
2422
let windowShownStatement: NimNode = nnkStmtList.newTree(
2523
nnkIfStmt.newTree(

0 commit comments

Comments
 (0)