mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-30 02:20:00 +03:00
Fix invalid characters filename download on windows
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
(cherry picked from commit e068120375)
This commit is contained in:
parent
b679a57939
commit
a57a21af3b
3 changed files with 15 additions and 3 deletions
|
|
@ -84,6 +84,9 @@ auto HttpMetaCache::getEntry(QString base, QString resource_path) -> MetaEntryPt
|
|||
|
||||
auto HttpMetaCache::resolveEntry(QString base, QString resource_path, QString expected_etag) -> MetaEntryPtr
|
||||
{
|
||||
#ifdef Q_OS_WIN
|
||||
resource_path = FS::RemoveInvalidPathChars(resource_path);
|
||||
#endif
|
||||
auto entry = getEntry(base, resource_path);
|
||||
// it's not present? generate a default stale entry
|
||||
if (!entry) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue