public _64Injector() { BasePath = null; ShortName = null; LongName = null; DarkFilter = true; Widescreen = false; Zoom = null; InPath = null; RomPath = null; IniPath = null; IconPath = null; BootTvPath = null; BootDrcPath = null; OutPath = null; Encrypt = true; _base = GetLoadedBase(); Rom = null; Ini = null; Scale = 1.0F; BootTvImg = new BootImage(); BootDrcImg = new BootImage(); IconImg = new IconImage(); }
private bool InjectIni() { bool injected = true; try { Cll.Log.WriteLine("Empty \"base\\content\\config\" folder."); Directory.Delete("base\\content\\config", true); Directory.CreateDirectory("base\\content\\config"); Cll.Log.WriteLine("Injecting INI data."); if (!IniIsLoaded) { Cll.Log.WriteLine("Injecting an empty INI."); File.Create("base\\content\\config\\U" + Rom.ProductCodeVersion + ".z64.ini").Close(); Cll.Log.WriteLine("In: \"base\\content\\config\\U" + Rom.ProductCodeVersion + ".z64.ini\""); Cll.Log.WriteLine("INI injected."); } else if (VCN64ConfigFile.Copy(IniPath, "base\\content\\config\\U" + Rom.ProductCodeVersion + ".z64.ini")) { Cll.Log.WriteLine("CRC16: " + Ini.HashCRC16.ToString("X4")); Cll.Log.WriteLine("In: \"base\\content\\config\\U" + Rom.ProductCodeVersion + ".z64.ini\""); Cll.Log.WriteLine("Injected INI."); } else { Cll.Log.WriteLine("INI not injected, \"VCN64ConfigFile.Copy\" failed."); injected = false; } } catch { Cll.Log.WriteLine("Error injecting INI."); injected = false; } return(injected); }