NOISSUE move version file reading and writing to dedicated namespaces

This commit is contained in:
Petr Mrázek
2016-02-27 22:02:56 +01:00
parent 17ad1e64f8
commit a0b47aee5b
16 changed files with 328 additions and 308 deletions

View File

@ -21,6 +21,7 @@
#include "net/HttpMetaCache.h"
#include "tasks/Task.h"
#include "minecraft/onesix/OneSixInstance.h"
#include <minecraft/onesix/OneSixVersionFormat.h>
#include "minecraft/VersionFilterData.h"
#include "Env.h"
#include "Exception.h"
@ -76,7 +77,7 @@ void ForgeInstaller::prepare(const QString &filename, const QString &universalUr
// read the forge version info
{
newVersion = MinecraftProfile::fromJson(versionInfoVal.toObject());
newVersion = OneSixVersionFormat::readProfileFromSingleFile(versionInfoVal.toObject());
if (!newVersion)
return;
}