Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#3686 closed defect (fixed)

FEEBLE: Capitalization variations when searching for files

Reported by: SF/h3xx Owned by: sev-
Priority: low Component: Engine: AGOS
Keywords: Cc:
Game: The Feeble Files

Description

System: Linux with scummvm-svn (Mon Apr 7 15:20:42 CDT 2008)

I was trying to play The Feeble Files with all the original filenames copied from the CD (with all FLAC files named with extension .fla) and decided to run an strace:

open("/home/h3xx/downloads/games/feeble/feeble/winasoft.flac", O_RDONLY) = -1 ENOENT (No such file or directory) open("/home/h3xx/downloads/games/feeble/feeble/winasoft.flacWINASOFT.FLAC", O_RDONLY) = -1 ENOENT (No such file or directory) open("/home/h3xx/downloads/games/feeble/feeble/winasoft.flacWINASOFT.FLACwinasoft.flac", O_RDONLY) = -1 ENOENT (No such file or directory) open("/home/h3xx/downloads/games/feeble/feeble/winasoft.flacWINASOFT.FLACwinasoft.flacWinasoft.flac", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/scummvm/winasoft.flac", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/scummvm/winasoft.flacWINASOFT.FLAC", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/scummvm/winasoft.flacWINASOFT.FLACwinasoft.flac", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/scummvm/winasoft.flacWINASOFT.FLACwinasoft.flacWinasoft.flac", O_RDONLY) = -1 ENOENT (No such file or directory) open("winasoft.flac", O_RDONLY) = -1 ENOENT (No such file or directory) open("winasoft.flacWINASOFT.FLAC", O_RDONLY) = -1 ENOENT (No such file or directory) open("winasoft.flacWINASOFT.FLACwinasoft.flac", O_RDONLY) = -1 ENOENT (No such file or directory) open("winasoft.flacWINASOFT.FLACwinasoft.flacWinasoft.flac", O_RDONLY) = -1 ENOENT (No such file or directory) open("/home/h3xx/downloads/games/feeble/feeble/winasoft.fla", O_RDONLY) = 9

It looks as though the function that searches for alternate capitalizations is appending each alternate to the end of the search string, rather than trying that filename in the same directory.

The game runs fine, but I imagine that alternate capitalizations of game data filenames do not work.

Ticket imported from: #1937042. Ticket imported from: bugs/3686.

Change History (4)

comment:1 by SF/h3xx, 12 years ago

Priority: normallow

comment:2 by SF/h3xx, 12 years ago

Summary: Capitalization variations when searching for filesFEEBLE: Capitalization variations when searching for files

comment:3 by sev-, 12 years ago

Good catch! Thank you, it's a fairly recent regression.

comment:4 by sev-, 12 years ago

Owner: set to sev-
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.