lib/fmod.rb in fmod-0.9.2 vs lib/fmod.rb in fmod-0.9.3
- old
+ new
@@ -474,13 +474,10 @@
when :MACOSX then 'libfmod.dylib'
when :LINUX then 'libfmod.so'
else 'fmod' # Will probably fail...
end
end
- if directory.nil?
- gem_directory = File.dirname(File.dirname(__FILE__))
- directory = File.join(gem_directory, 'ext')
- end
+ directory ||= Dir.getwd
library = File.join(directory, library)
lib = Fiddle.dlopen(File.expand_path(library))
import_symbols(lib)
end