Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

["Feature" request] Ignoring case of iwad filename for Linux users when loading custom wad? #113

Open
bslenul opened this issue Sep 12, 2019 · 2 comments

Comments

@bslenul
Copy link

bslenul commented Sep 12, 2019

Hey!

For Linux users, would it be possible to completely ignore the case for the iwad filename when loading a custom wad?

For example, if I want to load SIGIL and have DOOM.WAD/DOOM.wad/Doom.wad/doom.WAD/etc., it wont load because its looking for doom.wad and nothing else.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@Ferk
Copy link
Contributor

Ferk commented Sep 12, 2019

I'd also like this.
But it's tricky because of the range of platforms needed to support and the fact that we can't just spam the disk reading for alternative casing.

The right way would be reading the directory and iterating over the list of files (something like this). But it would be slow if the user has a bazillion files, specially because of the recursive search. It'd be better if there was some globing support to only retrieve files with the right extensions and so. This is probably something that should be added to libretro-common, since I imagine it's useful for usecases in other cores too.

@Sakitoshi
Copy link
Contributor

the only problem I see is that all of those files with different cases can exist at the same time and if that happens. which file should be opened?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants