filesystem: percent-encode Windows-illegal guest path segments #243

Closed
github-bot wants to merge 1 commit from gh-pr/243/head into gh-pr/243/base
Owner

@⁠Hashim1999164 on GitHub · 2026-08-12 21:55 UTC · original
Hashim1999164:fix/windows-host-path-encoding → main · +40 −8 · 1 files · 1 commits · closed without merging

Summary

  • Percent-encode Windows-illegal characters in guest path segments when mapping to host paths in fileSystem.cpp.
  • Keeps create and reload on the same stable host path for names that include characters like :.

Fixes #141

Test plan

  • On Windows, create a save/dir whose guest name includes an illegal host character (for example :).
  • Confirm the host path is created with percent-encoded segments.
  • Reload/open the same path and confirm it resolves to the same host location.
  • Spot-check paths without illegal characters still map unchanged.
**@⁠Hashim1999164** on GitHub · 2026-08-12 21:55 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/243) `Hashim1999164:fix/windows-host-path-encoding` → `main` · +40 −8 · 1 files · 1 commits · closed without merging ## Summary - Percent-encode Windows-illegal characters in guest path segments when mapping to host paths in `fileSystem.cpp`. - Keeps create and reload on the same stable host path for names that include characters like `:`. Fixes #141 ## Test plan - [ ] On Windows, create a save/dir whose guest name includes an illegal host character (for example `:`). - [ ] Confirm the host path is created with percent-encoded segments. - [ ] Reload/open the same path and confirm it resolves to the same host location. - [ ] Spot-check paths without illegal characters still map unchanged.
Guest save names can include characters like ':' that NTFS rejects.
Encode those segments in GetRealFilename/GetRealDirectory so create and
reload use the same stable host path. Fixes #141.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:14:19 +00:00
github-bot closed this pull request 2026-11-26 09:14:19 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.