Working on legacy support, incomplete.
This commit is contained in:
parent
ff33d4a1a4
commit
77e8066542
13 changed files with 1061 additions and 0 deletions
|
@ -92,12 +92,15 @@ void OneSixUpdate::versionFileFinished()
|
|||
{
|
||||
QString version1 = PathCombine(inst_dir, "/version.json");
|
||||
ensurePathExists(version1);
|
||||
// FIXME: detect errors here, download to a temp file, swap
|
||||
QFile vfile1 (version1);
|
||||
vfile1.open(QIODevice::Truncate | QIODevice::WriteOnly );
|
||||
vfile1.write(DlJob->m_data);
|
||||
vfile1.close();
|
||||
}
|
||||
|
||||
// the version is downloaded safely. update is 'done' at this point
|
||||
m_inst->setShouldUpdate(false);
|
||||
// save the version file in versions/$version/$version.json
|
||||
/*
|
||||
//QString version2 = QString("versions/") + version_id + "/" + version_id + ".json";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue