From af3384c649cb0f71a78ade376386d0c873754bb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Mon, 27 Mar 2017 08:30:21 +0200 Subject: NOISSUE add filename to newly created jar mod patches --- api/logic/minecraft/onesix/OneSixProfileStrategy.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'api/logic/minecraft') 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(f); + auto patch = std::make_shared(f, patchFileName); patch->setMovable(true); patch->setRemovable(true); profile->appendPatch(patch); -- cgit v1.2.3