mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Windows: Fix loading files with a long path.
Better handling of a path which exceeds MAX_PATH when converted into UTF-8.
This commit is contained in:
parent
3aca9e3ca4
commit
8eeee7e1ab
1 changed files with 0 additions and 12 deletions
|
@ -404,18 +404,6 @@ namespace MainWindow {
|
|||
Core_EnableStepping(false);
|
||||
}
|
||||
|
||||
// TODO: What is this for / what does it fix?
|
||||
if (browseDialog->GetType() != W32Util::AsyncBrowseDialog::DIR) {
|
||||
// Decode the filename with fullpath.
|
||||
char drive[MAX_PATH];
|
||||
char dir[MAX_PATH];
|
||||
char fname[MAX_PATH];
|
||||
char ext[MAX_PATH];
|
||||
_splitpath(filename.c_str(), drive, dir, fname, ext);
|
||||
|
||||
filename = std::string(drive) + std::string(dir) + std::string(fname) + std::string(ext);
|
||||
}
|
||||
|
||||
filename = ReplaceAll(filename, "\\", "/");
|
||||
NativeMessageReceived("boot", filename.c_str());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue