Skip to content

Commit

Permalink
use toFilePath
Browse files Browse the repository at this point in the history
  • Loading branch information
atavism committed Dec 6, 2023
1 parent f4a7726 commit ca728d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ffi.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ typedef Setting = ffi.Pointer<Utf8> Function();
// in debug mode local linking
var path = Directory.current.path;

final dylib = ffi.DynamicLibrary.open(Platform.isMacOS ? 'liblantern.dylib' : Platform.script.resolve('$path\\liblantern.dll').toFilePath());
final dylib = ffi.DynamicLibrary.open(Platform.isMacOS ? 'liblantern.dylib' : Platform.script.resolve('liblantern.dll').toFilePath());

final Start start =
dylib.lookup<ffi.NativeFunction<start_func>>('Start').asFunction();
Expand Down

0 comments on commit ca728d3

Please sign in to comment.