Skip to content

Commit 6136ea5

Browse files
committed
Fix FFI load library name mangling.
1 parent 95c0cda commit 6136ea5

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

precise-timer/PreciseTimer.moon

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ void Sleep(unsigned long);
66
]]
77

88
class PreciseTimer
9-
@version = 0x000101
10-
@version_string = "0.1.1"
9+
@version = 0x000102
10+
@version_string = "0.1.2"
1111

1212
PT = nil
1313
PTVersion = 0x000100
14-
pathExt = "/automation/include/#{@__name}/#{(ffi.os != windows) and 'lib' or ''}#{@__name}.#{(OSX: 'dylib', Windows: 'dll')[ffi.os] or 'so'}"
14+
pathExt = "/automation/include/#{@__name}/#{(ffi.os != 'Windows') and 'lib' or ''}#{@__name}.#{(OSX: 'dylib', Windows: 'dll')[ffi.os] or 'so'}"
1515
defaultLibraryPaths = aegisub and {aegisub.decode_path( "?user"..pathExt ), aegisub.decode_path( "?data"..pathExt )} or {@__name}
1616

1717
freeTimer = ( timer ) ->

threaded-libcurl/DownloadManager.moon

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ void Sleep(unsigned long);
6767
sleep = ffi.os == "Windows" and (( ms = 100 ) -> ffi.C.Sleep ms) or (( ms = 100 ) -> ffi.C.usleep ms*1000)
6868

6969
class DownloadManager
70-
@version = 0x000102
71-
@version_string = "0.1.2"
70+
@version = 0x000103
71+
@version_string = "0.1.3"
7272

7373
DM = nil
7474
DMVersion = 0x000101
75-
pathExt = "/automation/include/#{@__name}/#{(ffi.os != windows) and 'lib' or ''}#{@__name}.#{(OSX: 'dylib', Windows: 'dll')[ffi.os] or 'so'}"
75+
pathExt = "/automation/include/#{@__name}/#{(ffi.os != 'Windows') and 'lib' or ''}#{@__name}.#{(OSX: 'dylib', Windows: 'dll')[ffi.os] or 'so'}"
7676
defaultLibraryPaths = aegisub and {aegisub.decode_path("?user"..pathExt), aegisub.decode_path("?data"..pathExt)} or {@__name}
7777
msgs = {
7878
notInitialized: "#{@__name} not initialized.",

0 commit comments

Comments
 (0)