openrgss 0.1.3-x86-mingw32 → 0.1.4-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/openrgss/rgss.rb +3 -3
- metadata +1 -1
data/lib/openrgss/rgss.rb
CHANGED
@@ -158,8 +158,8 @@ module RGSS
|
|
158
158
|
def msgbox(*args)
|
159
159
|
if RUBY_PLATFORM['mingw'] or RUBY_PLATFORM['mswin']
|
160
160
|
require 'dl'
|
161
|
-
@@
|
162
|
-
|
161
|
+
@@messagebox ||= DL::CFunc.new(DL.dlopen('user32')['MessageBoxA'], DL::TYPE_LONG, 'MessageBox')
|
162
|
+
@@messagebox.call([0, args.collect { |arg| arg.to_s }.join("\n"), RGSS.title, 0].pack('L!ppL!').unpack('L!*'))
|
163
163
|
else
|
164
164
|
puts args
|
165
165
|
end
|
@@ -173,7 +173,7 @@ module RGSS
|
|
173
173
|
#
|
174
174
|
# <b>(Not Implemented in OpenRGSS)</b>
|
175
175
|
def msgbox_p(*args)
|
176
|
-
msgbox args.collect{|obj|obj.inspect}.join("\n")
|
176
|
+
msgbox args.collect { |obj| obj.inspect }.join("\n")
|
177
177
|
end
|
178
178
|
|
179
179
|
module Drawable
|