diff options
author | Lenny McLennington <lennymclennington@protonmail.com> | 2022-05-13 17:48:19 +0100 |
---|---|---|
committer | Lenny McLennington <lennymclennington@protonmail.com> | 2022-05-21 17:30:09 +0100 |
commit | caf6d027282392a58b935185d787c4c22a861409 (patch) | |
tree | 9d01ac05666a2a1235a79562c6f911e10038060b /launcher/net | |
parent | 35f71f5793ee91a71e00464932ff95eb5e5e4d5e (diff) | |
download | PrismLauncher-caf6d027282392a58b935185d787c4c22a861409.tar.gz PrismLauncher-caf6d027282392a58b935185d787c4c22a861409.tar.bz2 PrismLauncher-caf6d027282392a58b935185d787c4c22a861409.zip |
Change paste settings and add copyright headers
- There's now a notice reminding people to change the base URL if they
had a custom base URL and change the paste type (that was something I
personally had problems with when I was testing, so a reminder was
helpful for me).
- Broke down some of the long lines on APIPage.cpp to be more readable.
- Added copyright headers where they were missing.
- Changed the paste service display names to the names they are more
commonly known by.
- Changed the default hastebin base URL to https://hst.sh due to the
acquisition of https://hastebin.com by Toptal.
Diffstat (limited to 'launcher/net')
-rw-r--r-- | launcher/net/PasteUpload.cpp | 10 | ||||
-rw-r--r-- | launcher/net/PasteUpload.h | 3 |
2 files changed, 8 insertions, 5 deletions
diff --git a/launcher/net/PasteUpload.cpp b/launcher/net/PasteUpload.cpp index d583216d..3855190a 100644 --- a/launcher/net/PasteUpload.cpp +++ b/launcher/net/PasteUpload.cpp @@ -1,6 +1,8 @@ // SPDX-License-Identifier: GPL-3.0-only /* * PolyMC - Minecraft Launcher + * Copyright (C) 2022 Lenny McLennington <lenny@sneed.church> + * Copyright (C) 2022 Swirl <swurl@swurl.xyz> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -43,10 +45,10 @@ #include <QFile> std::array<PasteUpload::PasteTypeInfo, 4> PasteUpload::PasteTypes = { - {{"0x0", "https://0x0.st", ""}, - {"hastebin", "https://hastebin.com", "/documents"}, - {"paste (paste.gg)", "https://paste.gg", "/api/v1/pastes"}, - {"mclogs", "https://api.mclo.gs", "/1/log"}}}; + {{"0x0.st", "https://0x0.st", ""}, + {"hastebin", "https://hst.sh", "/documents"}, + {"paste.gg", "https://paste.gg", "/api/v1/pastes"}, + {"mclo.gs", "https://api.mclo.gs", "/1/log"}}}; PasteUpload::PasteUpload(QWidget *window, QString text, QString baseUrl, PasteType pasteType) : m_window(window), m_baseUrl(baseUrl), m_pasteType(pasteType), m_text(text.toUtf8()) { diff --git a/launcher/net/PasteUpload.h b/launcher/net/PasteUpload.h index e276234f..eb315c2b 100644 --- a/launcher/net/PasteUpload.h +++ b/launcher/net/PasteUpload.h @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-3.0-only /* * PolyMC - Minecraft Launcher + * Copyright (C) 2022 Lenny McLennington <lenny@sneed.church> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -45,7 +46,7 @@ class PasteUpload : public Task { Q_OBJECT public: - enum PasteType : unsigned int { + enum PasteType : int { // 0x0.st NullPointer, // hastebin.com |