diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-04-17 22:51:30 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-04-17 22:51:30 +0200 |
commit | c4c8e99681e14e5d0e82a13cb0631107dedf96ff (patch) | |
tree | a40279027b7530b5b8ddf0bbc286d0a33dc18951 /api/logic/minecraft/GradleSpecifier.h | |
parent | fc28aacdea3e7331b0f5f4436e0dac2fd361c390 (diff) | |
download | MultiMC-c4c8e99681e14e5d0e82a13cb0631107dedf96ff.tar MultiMC-c4c8e99681e14e5d0e82a13cb0631107dedf96ff.tar.gz MultiMC-c4c8e99681e14e5d0e82a13cb0631107dedf96ff.tar.lz MultiMC-c4c8e99681e14e5d0e82a13cb0631107dedf96ff.tar.xz MultiMC-c4c8e99681e14e5d0e82a13cb0631107dedf96ff.zip |
NOISSUE jar mods as libraries, fix for customizing net.minecraft
Diffstat (limited to 'api/logic/minecraft/GradleSpecifier.h')
-rw-r--r-- | api/logic/minecraft/GradleSpecifier.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/api/logic/minecraft/GradleSpecifier.h b/api/logic/minecraft/GradleSpecifier.h index b05553bb..f842008c 100644 --- a/api/logic/minecraft/GradleSpecifier.h +++ b/api/logic/minecraft/GradleSpecifier.h @@ -65,13 +65,22 @@ struct GradleSpecifier filename += "." + m_extension; return filename; } - QString toPath() const + QString toPath(const QString & filenameOverride = QString()) const { if(!m_valid) return "INVALID"; + QString filename; + if(filenameOverride.isEmpty()) + { + filename = getFileName(); + } + else + { + filename = filenameOverride; + } QString path = m_groupId; path.replace('.', '/'); - path += '/' + m_artifactId + '/' + m_version + '/' + getFileName(); + path += '/' + m_artifactId + '/' + m_version + '/' + filename; return path; } inline bool valid() const |