Don't downcase file path unless we need too, update gems.

This commit is contained in:
2025-10-10 13:30:37 -05:00
parent d67ffa14a3
commit d12d3ff6b8
2 changed files with 7 additions and 5 deletions

View File

@@ -14,16 +14,18 @@ GEM
ffi (1.17.2-x86_64-linux-gnu) ffi (1.17.2-x86_64-linux-gnu)
ffi-win32-extensions (1.0.4) ffi-win32-extensions (1.0.4)
ffi ffi
fiddle (1.1.8)
gosu (1.4.6) gosu (1.4.6)
i18n (1.14.7) i18n (1.14.7)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
ircparser (1.0.0) ircparser (1.0.0)
libui (0.1.2-x64-mingw) libui (0.2.0-x64-mingw-ucrt)
fiddle
logger (1.7.0) logger (1.7.0)
mutex_m (0.3.0) mutex_m (0.3.0)
rake (13.3.0) rake (13.3.0)
rexml (3.4.2) rexml (3.4.4)
rubyzip (3.0.2) rubyzip (3.1.1)
sdl2-bindings (0.2.3) sdl2-bindings (0.2.3)
ffi (~> 1.15) ffi (~> 1.15)
websocket (1.2.11) websocket (1.2.11)

View File

@@ -129,11 +129,11 @@ class W3DHub
end end
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 if "#{base_path}/#{path}".length == constructed_path.length
constructed_path constructed_path
else else
"#{base_path}/#{path.downcase}" "#{base_path}/#{path}" # File doesn't exist, case doesn't matter.
end end
end end