GH-1011 fetch missing versions when customizing/reverting Minecraft patches
This commit is contained in:
parent
f9e186ab70
commit
a98e1df10c
4 changed files with 41 additions and 13 deletions
|
@ -275,19 +275,19 @@ bool OneSixProfileStrategy::customizePatch(ProfilePatchPtr patch)
|
|||
{
|
||||
return false;
|
||||
}
|
||||
QSaveFile jsonFile(filename);
|
||||
if(!jsonFile.open(QIODevice::WriteOnly))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
auto document = patch->toJson(true);
|
||||
jsonFile.write(document.toJson());
|
||||
if(!jsonFile.commit())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
try
|
||||
{
|
||||
QSaveFile jsonFile(filename);
|
||||
if(!jsonFile.open(QIODevice::WriteOnly))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
auto document = patch->toJson(true);
|
||||
jsonFile.write(document.toJson());
|
||||
if(!jsonFile.commit())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
load();
|
||||
}
|
||||
catch (VersionIncomplete &error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue