diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-04-01 22:33:15 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-04-01 22:33:15 +0200 |
commit | 52ff6a4140caa7e16eb3adec4948251593d213a7 (patch) | |
tree | e1575dcb7b8a02190edf0bd1104b5e37b37b9ea2 /logic/VersionFinal.cpp | |
parent | 1ef6ec41787270d95523e29754ab90fce41e57c8 (diff) | |
download | MultiMC-52ff6a4140caa7e16eb3adec4948251593d213a7.tar MultiMC-52ff6a4140caa7e16eb3adec4948251593d213a7.tar.gz MultiMC-52ff6a4140caa7e16eb3adec4948251593d213a7.tar.lz MultiMC-52ff6a4140caa7e16eb3adec4948251593d213a7.tar.xz MultiMC-52ff6a4140caa7e16eb3adec4948251593d213a7.zip |
Deny april fools outside of first april.
Diffstat (limited to 'logic/VersionFinal.cpp')
-rw-r--r-- | logic/VersionFinal.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/logic/VersionFinal.cpp b/logic/VersionFinal.cpp index 10e3ec82..dedf2ce5 100644 --- a/logic/VersionFinal.cpp +++ b/logic/VersionFinal.cpp @@ -345,6 +345,13 @@ void VersionFinal::reapply(const bool alreadyReseting) void VersionFinal::finalize() { + // HACK: deny april fools. my head hurts enough already. + QDate now = QDate::currentDate(); + bool isAprilFools = now.month() == 4 && now.day() == 1; + if (assets.endsWith("_af") && !isAprilFools) + { + assets = assets.left(assets.length() - 3); + } if (assets.isEmpty()) { assets = "legacy"; |