mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-12 23:32:35 +00:00
Don't downcase file path unless we need too, update gems.
This commit is contained in:
@@ -14,16 +14,18 @@ GEM
|
||||
ffi (1.17.2-x86_64-linux-gnu)
|
||||
ffi-win32-extensions (1.0.4)
|
||||
ffi
|
||||
fiddle (1.1.8)
|
||||
gosu (1.4.6)
|
||||
i18n (1.14.7)
|
||||
concurrent-ruby (~> 1.0)
|
||||
ircparser (1.0.0)
|
||||
libui (0.1.2-x64-mingw)
|
||||
libui (0.2.0-x64-mingw-ucrt)
|
||||
fiddle
|
||||
logger (1.7.0)
|
||||
mutex_m (0.3.0)
|
||||
rake (13.3.0)
|
||||
rexml (3.4.2)
|
||||
rubyzip (3.0.2)
|
||||
rexml (3.4.4)
|
||||
rubyzip (3.1.1)
|
||||
sdl2-bindings (0.2.3)
|
||||
ffi (~> 1.15)
|
||||
websocket (1.2.11)
|
||||
|
||||
@@ -129,11 +129,11 @@ class W3DHub
|
||||
end
|
||||
end
|
||||
|
||||
# Find file if it exists, otherwise downcase the `path` sans `base_path`
|
||||
# Find file if it exists else use provided path as cased
|
||||
if "#{base_path}/#{path}".length == constructed_path.length
|
||||
constructed_path
|
||||
else
|
||||
"#{base_path}/#{path.downcase}"
|
||||
"#{base_path}/#{path}" # File doesn't exist, case doesn't matter.
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user