Fix missed version file assignment.
This commit is contained in:
		| @@ -90,8 +90,7 @@ void OneSixVersionBuilder::buildInternal(const bool onlyVanilla, const QStringLi | |||||||
| 	{ | 	{ | ||||||
| 		// version.json | 		// version.json | ||||||
| 		QLOG_INFO() << "Reading version.json"; | 		QLOG_INFO() << "Reading version.json"; | ||||||
| 		VersionFile file; | 		VersionFile file = parseJsonFile(QFileInfo(root.absoluteFilePath("version.json")), false); | ||||||
| 		parseJsonFile(QFileInfo(root.absoluteFilePath("version.json")), false, &file); |  | ||||||
| 		file.name = "Minecraft"; | 		file.name = "Minecraft"; | ||||||
| 		file.fileId = "org.multimc.version.json"; | 		file.fileId = "org.multimc.version.json"; | ||||||
| 		file.version = m_instance->intendedVersionId(); | 		file.version = m_instance->intendedVersionId(); | ||||||
| @@ -124,7 +123,7 @@ void OneSixVersionBuilder::buildInternal(const bool onlyVanilla, const QStringLi | |||||||
| 		for (auto order : files.keys()) | 		for (auto order : files.keys()) | ||||||
| 		{ | 		{ | ||||||
| 			QLOG_DEBUG() << "Applying file with order" << order; | 			QLOG_DEBUG() << "Applying file with order" << order; | ||||||
| 			auto filePair = files[order]; | 			auto & filePair = files[order]; | ||||||
| 			filePair.second.applyTo(m_version); | 			filePair.second.applyTo(m_version); | ||||||
| 		} | 		} | ||||||
| 	} while(0); | 	} while(0); | ||||||
|   | |||||||
| @@ -64,7 +64,7 @@ public: /* methods */ | |||||||
| 	void applyTo(VersionFinal *version); | 	void applyTo(VersionFinal *version); | ||||||
|  |  | ||||||
| public: /* data */ | public: /* data */ | ||||||
| 	int order; | 	int order = 0; | ||||||
| 	QString name; | 	QString name; | ||||||
| 	QString fileId; | 	QString fileId; | ||||||
| 	QString version; | 	QString version; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Petr Mrázek
					Petr Mrázek