aboutsummaryrefslogtreecommitdiff
path: root/launcher/FileSystem.cpp
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-02-09 22:07:07 -0800
committerRachel Powers <508861+Ryex@users.noreply.github.com>2023-03-20 14:56:32 -0700
commit3a0e4546c2a1914c18f71622727997a2a7518ad2 (patch)
tree83caefca044c8ac0ede5316ee1652cdaff9416b4 /launcher/FileSystem.cpp
parentcd2419137d68781354325d77c0392ab0ee1b65de (diff)
downloadPrismLauncher-3a0e4546c2a1914c18f71622727997a2a7518ad2.tar.gz
PrismLauncher-3a0e4546c2a1914c18f71622727997a2a7518ad2.tar.bz2
PrismLauncher-3a0e4546c2a1914c18f71622727997a2a7518ad2.zip
fix: windows test compat
fix: compiler warning on int qint32 compare Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/FileSystem.cpp')
-rw-r--r--launcher/FileSystem.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/launcher/FileSystem.cpp b/launcher/FileSystem.cpp
index 57b796ad..c3a0c273 100644
--- a/launcher/FileSystem.cpp
+++ b/launcher/FileSystem.cpp
@@ -433,7 +433,7 @@ void create_link::runPrivlaged(const QString& offset)
in >> numResults;
qDebug() << "numResults" << numResults;
- for(int i = 0; i < numResults; i++) {
+ for(quint32 i = 0; i < numResults; i++) {
FS::LinkResult result;
in >> result.src;
in >> result.dst;
@@ -484,7 +484,6 @@ void ExternalLinkFileProcess::runLinkFile() {
#if defined Q_OS_WIN32
SHELLEXECUTEINFO ShExecInfo;
- HRESULT hr;
fileLinkExe = fileLinkExe + ".exe";
@@ -620,7 +619,7 @@ QString PathTruncate(const QString& path, int depth)
if (parts.startsWith(".") && !path.startsWith(".")) {
parts.removeFirst();
}
- if (path.startsWith(QDir::separator())) {
+ if (QDir::toNativeSeparators(path).startsWith(QDir::separator())) {
parts.prepend("");
}