Skip to content

Commit

Permalink
Set default Engine version 4.26
Browse files Browse the repository at this point in the history
  • Loading branch information
Fi1osof committed May 9, 2021
1 parent fedd5e7 commit a4868a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions libs/epicApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -1095,6 +1095,9 @@ function addAssetToProject(assetInfo, projectData, ondone, onerror, onprogress)
return onerror(err);
}
versions = getItemVersions(assetInfo);

// Show list supported versions
console.log('addAssetToProject versions', versions);

if (!versions[projectVersion]) {
return onerror("Version " + projectVersion + " is not avaiable.");
Expand Down
3 changes: 2 additions & 1 deletion libs/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ function getProjectVersionFromEnginePath(name, projectPath, engines)
}
} catch (e) {console.error(e);}

return "";
// Default Engine version
return "4.26";
}

function findProjectFile(dir)
Expand Down
2 changes: 1 addition & 1 deletion pages/js/main-ue-launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ function prepareForAddingAssets()
ipc.on("addingAssetErr", function (event, data)
{
data = parseJson(data);
error("Asset installation falied.");
error("Asset installation falied. " + data.err);
console.error(data);

onfinish();
Expand Down

0 comments on commit a4868a9

Please sign in to comment.