diff options
author | Petr Mrázek <peterix@gmail.com> | 2021-10-18 00:47:02 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2021-10-21 00:47:53 +0200 |
commit | 5b3dffce62f7e4c00436adeca33c5f2fc4a21db4 (patch) | |
tree | 01a0eb2d994a9b0622697a6dbb124966692e692a /buildconfig | |
parent | 297d4b4196c9bd1d9c4dd422dd88aaec620038d6 (diff) | |
download | PrismLauncher-5b3dffce62f7e4c00436adeca33c5f2fc4a21db4.tar.gz PrismLauncher-5b3dffce62f7e4c00436adeca33c5f2fc4a21db4.tar.bz2 PrismLauncher-5b3dffce62f7e4c00436adeca33c5f2fc4a21db4.zip |
NOISSUE continue debranding...
Diffstat (limited to 'buildconfig')
-rw-r--r-- | buildconfig/BuildConfig.cpp.in | 10 | ||||
-rw-r--r-- | buildconfig/BuildConfig.h | 15 |
2 files changed, 22 insertions, 3 deletions
diff --git a/buildconfig/BuildConfig.cpp.in b/buildconfig/BuildConfig.cpp.in index 1b223b5d..40940793 100644 --- a/buildconfig/BuildConfig.cpp.in +++ b/buildconfig/BuildConfig.cpp.in @@ -5,6 +5,16 @@ const Config BuildConfig; Config::Config() { + // Name and copyright + LAUNCHER_NAME = "@Launcher_Name@"; + LAUNCHER_DISPLAYNAME = "@Launcher_DisplayName@"; + LAUNCHER_COPYRIGHT = "@Launcher_Copyright@"; + LAUNCHER_DOMAIN = "@Launcher_Domain@"; + LAUNCHER_CONFIGFILE = "@Launcher_ConfigFile@"; + + USER_AGENT = "@Launcher_UserAgent@"; + USER_AGENT_UNCACHED = USER_AGENT + " (Uncached)"; + // Version information VERSION_MAJOR = @Launcher_VERSION_MAJOR@; VERSION_MINOR = @Launcher_VERSION_MINOR@; diff --git a/buildconfig/BuildConfig.h b/buildconfig/BuildConfig.h index 95f3ef22..641bd602 100644 --- a/buildconfig/BuildConfig.h +++ b/buildconfig/BuildConfig.h @@ -8,6 +8,12 @@ class Config { public: Config(); + QString LAUNCHER_NAME; + QString LAUNCHER_DISPLAYNAME; + QString LAUNCHER_COPYRIGHT; + QString LAUNCHER_DOMAIN; + QString LAUNCHER_CONFIGFILE; + /// The major version number. int VERSION_MAJOR; /// The minor version number. @@ -31,10 +37,13 @@ public: /// URL for the updater's channel QString UPDATER_BASE; + /// User-Agent to use. - QString USER_AGENT = "MultiMC/5.0"; + QString USER_AGENT; + /// User-Agent to use for uncached requests. - QString USER_AGENT_UNCACHED = "MultiMC/5.0 (Uncached)"; + QString USER_AGENT_UNCACHED; + /// Google analytics ID QString ANALYTICS_ID; @@ -71,7 +80,7 @@ public: QString IMGUR_CLIENT_ID; /** - * MultiMC Metadata repository URL prefix + * Metadata repository URL prefix */ QString META_URL; |