diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-03-27 08:30:21 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-04-07 00:20:02 +0200 |
commit | af3384c649cb0f71a78ade376386d0c873754bb5 (patch) | |
tree | 8db4518ec6843d43f0605dd13cc3bd1fd3c05eb1 /api/logic/minecraft/onesix/OneSixProfileStrategy.cpp | |
parent | 22735f275e9abee202c34e41af759fc9a3123089 (diff) | |
download | MultiMC-af3384c649cb0f71a78ade376386d0c873754bb5.tar MultiMC-af3384c649cb0f71a78ade376386d0c873754bb5.tar.gz MultiMC-af3384c649cb0f71a78ade376386d0c873754bb5.tar.lz MultiMC-af3384c649cb0f71a78ade376386d0c873754bb5.tar.xz MultiMC-af3384c649cb0f71a78ade376386d0c873754bb5.zip |
NOISSUE add filename to newly created jar mod patches
Diffstat (limited to 'api/logic/minecraft/onesix/OneSixProfileStrategy.cpp')
-rw-r--r-- | api/logic/minecraft/onesix/OneSixProfileStrategy.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/api/logic/minecraft/onesix/OneSixProfileStrategy.cpp b/api/logic/minecraft/onesix/OneSixProfileStrategy.cpp index a9cad832..c8d4aa2e 100644 --- a/api/logic/minecraft/onesix/OneSixProfileStrategy.cpp +++ b/api/logic/minecraft/onesix/OneSixProfileStrategy.cpp @@ -413,7 +413,6 @@ bool OneSixProfileStrategy::installJarMods(QStringList filepaths) f->uid = target_id; f->order = profile->getFreeOrderNumber(); QString patchFileName = FS::PathCombine(patchDir, target_id + ".json"); - // f->filename = patchFileName; QFile file(patchFileName); if (!file.open(QFile::WriteOnly)) @@ -425,7 +424,7 @@ bool OneSixProfileStrategy::installJarMods(QStringList filepaths) file.write(OneSixVersionFormat::versionFileToJson(f, true).toJson()); file.close(); - auto patch = std::make_shared<ProfilePatch>(f); + auto patch = std::make_shared<ProfilePatch>(f, patchFileName); patch->setMovable(true); patch->setRemovable(true); profile->appendPatch(patch); |