protected override BIGBank LoadFrontEndTextures() { BIGFileController c = (BIGFileController)AutoLoad( Settings.GetString("Files", "FrontEndTextures")); return(c.BIG.FindBankByName( Settings.GetString("Banks", "FrontEndTextures"))); }
public FileController Get(string fileName) { fileName = GetAbsoluteFileName(fileName); FileController c = Find(fileName); if (c != null) { // Already in the system. return(c); } FileInfo info = new FileInfo(fileName); string ext = info.Extension.ToUpper(); if (ext == ".BIG") { c = new BIGFileController(this, fileName); } else if (ext == ".BIN") { if (info.Name.ToUpper() == "NAMES.BIN") { c = new NamesBINController(this, fileName); } else { c = new BINFileController(this, fileName); } } else if (ext == ".STB") { c = new BBBFileController( this, new FableMod.STB.STBFile(), fileName); } else if (ext == ".WAD") { c = new BBBFileController( this, new FableMod.BBB.BBBFile(), fileName); } else if (ext == ".WLD") { c = new WLDFileController(this, fileName); } if (c != null) { myFiles.Add(c); } return(c); }
protected override BIGFile LoadTextures() { BIGFileController c = (BIGFileController)AutoLoad( Settings.GetString("Files", "Textures")); if (c == null) { return(null); } return(c.BIG); }
protected override BIGBank LoadText() { BIGFileController c = (BIGFileController)AutoLoad( Settings.GetString("Files", "Text")); if (c == null) { return(null); } return(c.BIG.FindBankByName( Settings.GetString("Banks", "Text"))); }