public XebuildError createxebuild(bool custom) { XebuildError result = XebuildError.none; result = doSomeChecks(); if (result != XebuildError.none) { return(result); } moveXell(); moveOptions(); if (variables.changeldv != 0) { string cfldv = "cfldv=" + variables.highldv.ToString(); string[] edit = { cfldv }; string[] delete = { }; parse_ini.edit_ini(Path.Combine(variables.pathforit, @"xeBuild\data\options.ini"), edit, delete); } Console.WriteLine("Load Files Initiliazation Finished"); if (!custom) { copySMC(); } else { copySMCcustom(); } checkDashLaunch(); if (variables.changeldv != 0) { string cfldv = "cfldv=" + variables.highldv.ToString(); string[] edit = { cfldv }; string[] delete = { }; parse_ini.edit_ini(Path.Combine(variables.pathforit, @"xeBuild\data\options.ini"), edit, delete); } Console.WriteLine("Started Creation of the {0} xebuild image", _dash); variables.xefolder = Path.Combine(Directory.GetParent(variables.outfolder).FullName, _nand.ki.serial); if (variables.debugme) { Console.WriteLine("outfolder: {0}", variables.xefolder); } if (!Directory.Exists(variables.xefolder)) { Directory.CreateDirectory(variables.xefolder); } System.IO.File.WriteAllText(System.IO.Path.Combine(variables.xefolder, variables.cpukeypath), _cpukey); savekvinfo(Path.Combine(variables.xefolder, "KV_Info.txt")); if (variables.changeldv != 0) { variables.changeldv = 2; } return(result); }
public XebuildError createxebuild() { XebuildError result = XebuildError.none; if (_dash == 0) { result = XebuildError.nodash; } if (result != XebuildError.none) { return(result); } //File.Copy(Path.Combine(variables.pathforit, @"common\xell\xell-2f.bin"), Path.Combine(variables.pathforit, @"xeBuild\xell-2f.bin"), true); //File.Copy(Path.Combine(variables.pathforit, @"common\xell\xell-gggggg.bin"), Path.Combine(variables.pathforit, @"xeBuild\xell-gggggg.bin"), true); moveOptions(); Console.WriteLine("Load Files Initiliazation Finished"); checkDashLaunch(); Console.WriteLine("Started Updating Console to {0}", _dash); variables.xefolder = variables.outfolder; return(result); }