mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-21 20:27:45 +00:00
Also start checking the available space before downloading patches to avoid really bad situations. This will be expanded in the future.
19 lines
No EOL
562 B
C++
19 lines
No EOL
562 B
C++
// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <QDir>
|
|
#include <QNetworkRequest>
|
|
|
|
namespace Utility
|
|
{
|
|
QString toWindowsPath(const QDir &dir);
|
|
void printRequest(const QString &type, const QNetworkRequest &request);
|
|
void createPathIfNeeded(const QDir &dir);
|
|
void setSSL(QNetworkRequest &request);
|
|
QString readVersion(const QString &path);
|
|
void writeVersion(const QString &path, const QString &version);
|
|
bool isSteamDeck();
|
|
QString repositoryFromPatchUrl(const QString &url);
|
|
} |