-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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]: Increase file path character limit for game folder detection #12368
Comments
this is not a pcsx2 issue this is a windows issue , if you really want to fix it try this https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry#enable-long-paths-in-windows-10-version-1607-and-later |
Following the article you linked, I enabled the long path setting using gpedit.msc, confirmed that it was enabled in regedit, and rebooted my computer, but pcsx2 was still unable to detect games with paths exceeding ~218 characters. The linked article also specifies that applications must declare their apps to be long path aware. I am wondering if this has been done in pcsx2? |
Once #12370 has built, can you see if that fixes long pathing for you? |
I'm unable to reproduce I tried the following paths (extending them to > 218) (I just copied the same file about and renamed them)
I configured PCSX2 to scan Can you provide further information that might help me repo |
Windows 10, but I have figured something out thanks to your work in trying to reproduce. Since you couldn't reproduce the problem, it hinted that it could be something wrong with my current pcsx2 setup. I set up a fresh portable pcsx2 using the latest nightly on the website and it successfully scanned the games with large paths >218 characters. I compared the pcsx2.ini files of both installs and found the following that should be of interest — For context, both installs of pcsx2 are portable setups on the latest version (v2.3.185). So there ya have it, relative paths (oddly) seem to be the culprit. Would be nice to have relative paths working for a truly portable install. The setup wizard would also have to be changed up to build the pcsx2.ini using relative paths instead of absolute paths as well if relative paths do end up working. |
Does #12370 work with relative paths? |
Description
I tried a few searches to see if this has been requested yet, but didn't find anything yet.
I noticed that the file path character limit for game detection is around 218 characters or so. Any higher and those games wouldn't be detected in the scan. Could the limit be increased? This is the only emulator I've used that has a file path limit this low.
Reason
Having this limit increased would allow me to keep my folder names and file names for the disc images without renaming them.
Examples
This issue comes up for me because I use some undub or translation patches for some games and I keep the readme files inside a folder for those games.
Here are some examples:
D:\Emulation\Sony - PlayStation 2\PS2 Discs\Dragon Quest V - The Heavenly Bride (Japan) [T-En by DQ Translations v1.2] (DQ~1\Dragon Quest V - The Heavenly Bride (Japan) [T-En by DQ Translations v1.2] (DQ Style) [n].chd
D:\Emulation\Sony - PlayStation 2\PS2 Discs\Project Zero (Europe) (En,Fr,De,Es,It) [Undub by karas84 v1.3.~1\Project Zero (Europe) (En,Fr,De,Es,It) [Undub by karas84 v1.3.3] (Japanese Title Screen) (Replace Models).chd
D:\Emulation\Sony - PlayStation 2\PS2 Discs\Tales of Destiny - Director's Cut (Japan, Asia) [T-En by Life Bottle Productions ~1\Tales of Destiny - Director's Cut (Japan, Asia) [T-En by Life Bottle Productions v1.5].chd
As you can see in these examples, I had to rename the folders to containing the CHD files to keep them at 218 characters and ended the folder names with "~1" to show that the rest of the names were cut off.
I understand that this may not affect many users, but I think it's logical to want to keep related files inside a folder for these games, though I can see that they have incredibly long descriptive filenames due to being translations or hacks.
I hope this request will be considered beneficial enough to implement. Perhaps a quick fix would be to use relative paths instead of absolute paths?
The text was updated successfully, but these errors were encountered: