potc-jruby icon indicating copy to clipboard operation
potc-jruby copied to clipboard

Unable to load assets via URL in Windows

Open bil-bas opened this issue 13 years ago • 0 comments

Game uses:

url = java.net.URL.new "file://" + ASSETS_DIR + file_name

which produces a sensible URL that Windows Explorer is happy with, but the game doesn't find those assets to load.

I was able to change it to:

url = java.io.File.new ASSETS_DIR + file_name

to get it to work, but obviously that isn't going to work in a network-based form.

bil-bas avatar Feb 17 '12 18:02 bil-bas