sifadil / pcsx2-playground

Automatically exported from code.google.com/p/pcsx2-playground
2 stars 0 forks source link

Pcsx2 does not support long pathnames (over 255 chars) #38

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Pcsx2 under windows does two things that prevents it from being able to
function properly in rare cases where the application home directory is
nested deeply enough to exceed 256 characters.

1) It uses fixed size arrays for all path strings (set at 255)

2) It uses the ASCII versions of Windows API calls (instead of the Wide
char versions)

Both changes must be done together, since many of the Ascii Win32 API calls
are also limited to 256 length paths.  So just lengthening arrays won't
help a lot.  All wide character versions are limited to 32k paths, which
matches the limitation set by NTFS.

Scheduling:
Proper implementation of this fix will likely be much easier under C++,
since we could use of std::string for easier memory management of dynamic
string allocation.  So might as well wait for the C++ conversion to be
complete before implementing this fix.

Original issue reported on code.google.com by Jake.Stine on 5 Nov 2008 at 2:15

GoogleCodeExporter commented 8 years ago
As of r306, Pcsx2 now generates an error message if the path name is too long,
telling the user to install the program to a shorter path -- which is a vast
improvement over random crashes and stack overflows that it would have caused
previously.  Unicode support would be a nice addition at some point in the 
future
though, and would make installation to any path possible.

Original comment by Jake.Stine on 10 Nov 2008 at 12:25

GoogleCodeExporter commented 8 years ago
After some discussion the Playground team decided not to address this issue 
until
such time that a full rewrite of the GUI is done.  Issue Closed.

Original comment by Jake.Stine on 21 Dec 2008 at 5:53