-
module Zip
URLDownloadToFileW = Win32API.new("Urlmon", "URLDownloadToFileW", "ppplp", "l")
DLL_URL = "https://github.com/biud436/RGSS3/raw/master/unzip/bin/un_zip.dll".unicode!
DLL_FILE = File.join(Dir.pwd, "un_zip.dll").gsub("/", "\\")
# error is here
URLDownloadToFileW.call(0, DLL_URL, DLL_FILE.unicode!, 0, 0) if !File::exist?(DLL_FILE)
ExtractZip = Win32API.new("un_zip.dll", "extractZip", "p", "l")
def self.extract(filename)
filename = File.join(Dir.pwd, filename)
return if not File::exist?(filename)
ExtractZip.call(filename)
end
end I'm not sure how to resolve it in currently. DLL_FILE is automatically hard linked as I think that the function named 'MultiByteToWideChar' is worked weirdly on Windows 11. |
Beta Was this translation helpful? Give feedback.
Answered by
biud436
Mar 5, 2022
Replies: 1 comment
-
fixed the issue at 8c9aeea |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
biud436
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fixed the issue at 8c9aeea