diff options
| author | Tom Black <[email protected]> | 2018-01-04 13:08:07 -0800 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2018-01-05 01:09:53 -0800 |
| commit | d79643513b6f939968dc6670de9be27b5cfbde48 (patch) | |
| tree | da5630eca21615d0767c62bd3b94835782c4fcc7 | |
| parent | 76795cd21ca2f475f948456971e8ead4dad868e7 (diff) | |
| download | ruby2d-d79643513b6f939968dc6670de9be27b5cfbde48.tar.gz ruby2d-d79643513b6f939968dc6670de9be27b5cfbde48.zip | |
Add DLL path for Simple 2D
| -rw-r--r-- | lib/ruby2d.rb | 5 |
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 |
