mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
improve invalid path name
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
428889a68d
commit
a7a1b28765
8 changed files with 82 additions and 20 deletions
|
|
@ -51,6 +51,7 @@ void Library::getApplicableFiles(const RuntimeContext& runtimeContext,
|
|||
{
|
||||
bool local = isLocal();
|
||||
auto actualPath = [&](QString relPath) {
|
||||
relPath = FS::RemoveInvalidPathChars(relPath);
|
||||
QFileInfo out(FS::PathCombine(storagePrefix(), relPath));
|
||||
if (local && !overridePath.isEmpty()) {
|
||||
QString fileName = out.fileName();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue