public byte[] Extract(byte[] sourceFileBytes, Installer.FileFormat fileFormat, string filename) { switch (fileFormat) { case Installer.FileFormat.Tap: return(ExtractTap(sourceFileBytes)); case Installer.FileFormat.Sna: return(ExtractSna(sourceFileBytes)); case Installer.FileFormat.Z80: return(ExtractZ80(filename)); default: Debug.LogError("Format not found"); return(_noImageAvailableBuffer); } }
public static string UDGIconString(this Installer.FileFormat fileFormat) { switch (fileFormat) { case Installer.FileFormat.Tap: return(Install.kUDGTapIconString); case Installer.FileFormat.Sna: return(Install.kUDGSnaIconString); case Installer.FileFormat.Z80: return(Install.kUDGZ80IconString); default: Debug.LogError("Couldn't match format"); Debug.Break(); return(Install.kUDGTapIconString); } }