summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTom Black <[email protected]>2018-01-04 13:08:07 -0800
committerTom Black <[email protected]>2018-01-05 01:09:53 -0800
commitd79643513b6f939968dc6670de9be27b5cfbde48 (patch)
treeda5630eca21615d0767c62bd3b94835782c4fcc7
parent76795cd21ca2f475f948456971e8ead4dad868e7 (diff)
downloadruby2d-d79643513b6f939968dc6670de9be27b5cfbde48.tar.gz
ruby2d-d79643513b6f939968dc6670de9be27b5cfbde48.zip
Add DLL path for Simple 2D
-rw-r--r--lib/ruby2d.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ruby2d.rb b/lib/ruby2d.rb
index 9642aa1..fa1ce40 100644
--- a/lib/ruby2d.rb
+++ b/lib/ruby2d.rb
@@ -16,6 +16,11 @@ require 'ruby2d/sprite'
require 'ruby2d/text'
require 'ruby2d/sound'
require 'ruby2d/music'
+
+if RUBY_PLATFORM =~ /mingw/
+ RubyInstaller::Runtime.add_dll_directory(File.expand_path('~/../../usr/local/bin'))
+end
+
require 'ruby2d/ruby2d' # load native extension
include Ruby2D