From 4450bd0890c8dcd627724aaf850d4e7746c1317d Mon Sep 17 00:00:00 2001 From: FaithBeam <32502411+FaithBeam@users.noreply.github.com> Date: Mon, 29 Jun 2020 16:11:25 -0400 Subject: [PATCH 1/6] Add .gitignore and .gitattributes. --- .gitattributes | 63 +++++++++ .gitignore | 340 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 403 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..1ff0c42 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,63 @@ +############################################################################### +# Set default behavior to automatically normalize line endings. +############################################################################### +* text=auto + +############################################################################### +# Set default behavior for command prompt diff. +# +# This is need for earlier builds of msysgit that does not have it on by +# default for csharp files. +# Note: This is only used by command line +############################################################################### +#*.cs diff=csharp + +############################################################################### +# Set the merge driver for project and solution files +# +# Merging from the command prompt will add diff markers to the files if there +# are conflicts (Merging from VS is not affected by the settings below, in VS +# the diff markers are never inserted). Diff markers may cause the following +# file extensions to fail to load in VS. An alternative would be to treat +# these files as binary and thus will always conflict and require user +# intervention with every merge. To do so, just uncomment the entries below +############################################################################### +#*.sln merge=binary +#*.csproj merge=binary +#*.vbproj merge=binary +#*.vcxproj merge=binary +#*.vcproj merge=binary +#*.dbproj merge=binary +#*.fsproj merge=binary +#*.lsproj merge=binary +#*.wixproj merge=binary +#*.modelproj merge=binary +#*.sqlproj merge=binary +#*.wwaproj merge=binary + +############################################################################### +# behavior for image files +# +# image files are treated as binary by default. +############################################################################### +#*.jpg binary +#*.png binary +#*.gif binary + +############################################################################### +# diff behavior for common document formats +# +# Convert binary document formats to text before diffing them. This feature +# is only available from the command line. Turn it on by uncommenting the +# entries below. +############################################################################### +#*.doc diff=astextplain +#*.DOC diff=astextplain +#*.docx diff=astextplain +#*.DOCX diff=astextplain +#*.dot diff=astextplain +#*.DOT diff=astextplain +#*.pdf diff=astextplain +#*.PDF diff=astextplain +#*.rtf diff=astextplain +#*.RTF diff=astextplain diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4ce6fdd --- /dev/null +++ b/.gitignore @@ -0,0 +1,340 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUNIT +*.VisualState.xml +TestResult.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding add-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- Backup*.rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# JetBrains Rider +.idea/ +*.sln.iml + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# BeatPulse healthcheck temp database +healthchecksdb \ No newline at end of file From 472943404e87328bbb42ccb6e44b580d3a45d216 Mon Sep 17 00:00:00 2001 From: FaithBeam <32502411+FaithBeam@users.noreply.github.com> Date: Mon, 29 Jun 2020 16:11:27 -0400 Subject: [PATCH 2/6] Add project files. --- Sims.Far.sln | 30 ++++++ Sims.Far/Bmp.cs | 9 ++ Sims.Far/Far.cs | 141 ++++++++++++++++++++++++++++ Sims.Far/Properties/AssemblyInfo.cs | 36 +++++++ Sims.Far/Sims.Far.csproj | 49 ++++++++++ 5 files changed, 265 insertions(+) create mode 100644 Sims.Far.sln create mode 100644 Sims.Far/Bmp.cs create mode 100644 Sims.Far/Far.cs create mode 100644 Sims.Far/Properties/AssemblyInfo.cs create mode 100644 Sims.Far/Sims.Far.csproj diff --git a/Sims.Far.sln b/Sims.Far.sln new file mode 100644 index 0000000..99c2e88 --- /dev/null +++ b/Sims.Far.sln @@ -0,0 +1,30 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30204.135 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sims.Far", "Sims.Far\Sims.Far.csproj", "{D68905CE-E71D-4E3D-BD65-917B99EEEF06}" +EndProject +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {D68905CE-E71D-4E3D-BD65-917B99EEEF06}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D68905CE-E71D-4E3D-BD65-917B99EEEF06}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D68905CE-E71D-4E3D-BD65-917B99EEEF06}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D68905CE-E71D-4E3D-BD65-917B99EEEF06}.Release|Any CPU.Build.0 = Release|Any CPU + {3DD6EC65-885A-4F64-85FD-75E880DBF31B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3DD6EC65-885A-4F64-85FD-75E880DBF31B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3DD6EC65-885A-4F64-85FD-75E880DBF31B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3DD6EC65-885A-4F64-85FD-75E880DBF31B}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {58BBF1FD-5040-4CD5-A623-47972CBAF078} + EndGlobalSection +EndGlobal diff --git a/Sims.Far/Bmp.cs b/Sims.Far/Bmp.cs new file mode 100644 index 0000000..dc969a8 --- /dev/null +++ b/Sims.Far/Bmp.cs @@ -0,0 +1,9 @@ +namespace Sims.Far +{ + public class Bmp + { + public int StartOffset { get; set; } + public int EndOffset { get; set; } + public string Path { get; set; } + } +} diff --git a/Sims.Far/Far.cs b/Sims.Far/Far.cs new file mode 100644 index 0000000..de7a0c0 --- /dev/null +++ b/Sims.Far/Far.cs @@ -0,0 +1,141 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; + +namespace Sims.Far +{ + public class Far + { + public readonly string far; + public List bmps = new List(); + public List paths = new List(); + public byte[] bytes; + + public Far(string far) + { + this.far = far; + ParseFar(); + } + + private void ParseFar() + { + bytes = File.ReadAllBytes(this.far); + int curByte = bytes[0]; + int nextByte = bytes[1]; + int sizeOfBITMAPINFOHEADER; + int sizeOfBmpBytes; + int endBmp = 0; + int i = 0; + for (; i < bytes.Length - 2; i++) + { + // Start of BMP header + if (curByte == 66 && nextByte == 77) + { + sizeOfBITMAPINFOHEADER = bytes[i - 1 + 14]; + // Header validation. BITMAPINFOHEADER will always be 40 so if it isn't, these bytes are not the start of a bmp. + if (sizeOfBITMAPINFOHEADER == 40) + { + sizeOfBmpBytes = BitConverter.ToInt32(new byte[] { bytes[i + 1], bytes[i + 2], bytes[i + 3], bytes[i + 4] }, 0); + endBmp = i - 1 + sizeOfBmpBytes; + this.bmps.Add(new Bmp { StartOffset = i - 1, EndOffset = endBmp }); + i = endBmp; + } + } + curByte = bytes[i]; + nextByte = bytes[i + 1]; + } + i = endBmp; + + // Bytes that represent acceptable ascii characters to create paths + var asciiChars = new List { 45, 46, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 92, 95, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122 }; + // Navigate to file names + while (!asciiChars.Contains(bytes[i]) && i < bytes.Length) { i++; } + + // Extensions that are found in the .far file. Currently only works with UIGraphics.far. + var extensions = new List { ".h", ".rt", ".bmp", ".tga", ".cur" }; + var sb = new StringBuilder(); + // Start at the end of all bmps + for (; i < bytes.Length; i++) + { + curByte = bytes[i]; + if (asciiChars.Contains(curByte)) + { + sb.Append(Convert.ToChar(curByte)); + } + else + { + // Skip strings that couldn't possible be a file + if (sb.Length > 5) + { + string path = ""; + var tmpPath = sb.ToString(); + // tmppath may still have dangling characters following the extension: .bmp8, .bmpR, etc. This replaces the tmppath's extension entirely. + foreach (var ext in extensions) + { + if (tmpPath.IndexOf(ext, StringComparison.OrdinalIgnoreCase) > 0) + { + path = tmpPath.Substring(0, tmpPath.IndexOf(".")) + ext; + break; + } + } + if (!string.IsNullOrWhiteSpace(path) && (path.IndexOf(".bmp", StringComparison.OrdinalIgnoreCase) > 0)) + paths.Add(path); + } + sb.Clear(); + } + } + // This feels bad + paths.Add(sb.ToString()); + sb.Clear(); + } + + public void Extract() + { + for (int j = 0; j < this.paths.Count; j++) + { + this.bmps[j].Path = this.paths[j]; + int size = this.bmps[j].EndOffset - this.bmps[j].StartOffset; + var curBmp = new byte[size]; + if (this.paths[j].Contains(@"\")) + Directory.CreateDirectory(@".\" + this.paths[j].Substring(0, this.paths[j].LastIndexOf(@"\"))); + Array.Copy(this.bytes, this.bmps[j].StartOffset, curBmp, 0, size); + File.WriteAllBytes(@".\" + this.bmps[j].Path, curBmp); + } + } + + public void Extract(string outputDirectory) + { + if (!outputDirectory.EndsWith(@"\")) outputDirectory += @"\"; + for (int j = 0; j < this.paths.Count; j++) + { + this.bmps[j].Path = this.paths[j]; + int size = this.bmps[j].EndOffset - this.bmps[j].StartOffset; + var curBmp = new byte[size]; + if (this.paths[j].Contains(@"\")) + Directory.CreateDirectory(outputDirectory + this.paths[j].Substring(0, this.paths[j].LastIndexOf(@"\"))); + Array.Copy(this.bytes, this.bmps[j].StartOffset, curBmp, 0, size); + File.WriteAllBytes(outputDirectory + this.bmps[j].Path, curBmp); + } + } + + public void Extract(string outputDirectory, IEnumerable filesToExtract) + { + if (!outputDirectory.EndsWith(@"\")) outputDirectory += @"\"; + for (int j = 0; j < this.paths.Count; j++) + { + if (filesToExtract.Contains(this.paths[j], StringComparer.OrdinalIgnoreCase)) + { + this.bmps[j].Path = this.paths[j]; + int size = this.bmps[j].EndOffset - this.bmps[j].StartOffset; + var curBmp = new byte[size]; + if (this.paths[j].Contains(@"\")) + Directory.CreateDirectory(outputDirectory + this.paths[j].Substring(0, this.paths[j].LastIndexOf(@"\"))); + Array.Copy(this.bytes, this.bmps[j].StartOffset, curBmp, 0, size); + File.WriteAllBytes(outputDirectory + this.bmps[j].Path, curBmp); + } + } + } + } +} diff --git a/Sims.Far/Properties/AssemblyInfo.cs b/Sims.Far/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..4cff7a6 --- /dev/null +++ b/Sims.Far/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Sims.Far")] +[assembly: AssemblyDescription("A library to handle Sims 1 far files.")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Sims.Far")] +[assembly: AssemblyCopyright("Copyright © 2020")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("d68905ce-e71d-4e3d-bd65-917b99eeef06")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("0.1.0.0")] +[assembly: AssemblyFileVersion("0.1.0.0")] diff --git a/Sims.Far/Sims.Far.csproj b/Sims.Far/Sims.Far.csproj new file mode 100644 index 0000000..f5791f9 --- /dev/null +++ b/Sims.Far/Sims.Far.csproj @@ -0,0 +1,49 @@ + + + + + Debug + AnyCPU + {D68905CE-E71D-4E3D-BD65-917B99EEEF06} + Library + Properties + Sims.Far + Sims.Far + v4.5 + 512 + true + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + \ No newline at end of file From 4dd513352ae92bfd4c4009d2b5123d661afb943d Mon Sep 17 00:00:00 2001 From: FaithBeam <32502411+FaithBeam@users.noreply.github.com> Date: Tue, 30 Jun 2020 05:12:21 -0400 Subject: [PATCH 3/6] Create README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..31feea1 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# Sims.Far +A library to manipulate The Sims 1 .far files. + +Currently only extracts .bmps from UIGraphics.far, and has only been used on The Sims 1 Complete Collection UIGraphics.far with CRC32: 8E03701F. From 06d431d9dd457e82ad71266c556e641482fabd0f Mon Sep 17 00:00:00 2001 From: FaithBeam <32502411+FaithBeam@users.noreply.github.com> Date: Wed, 1 Jul 2020 16:17:42 -0400 Subject: [PATCH 4/6] Update README.md --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 31feea1..be9f976 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,18 @@ +**This is currently considered pre-release** + # Sims.Far A library to manipulate The Sims 1 .far files. Currently only extracts .bmps from UIGraphics.far, and has only been used on The Sims 1 Complete Collection UIGraphics.far with CRC32: 8E03701F. + +## Usage + +```cs +using Sims.Far; + +void main() +{ + var far = new Far(@"C:\Program Files (x86)\Maxis\The Sims\UIGraphics\UIGraphics.far"); + far.Extract(@"UIGraphics\"); +} +``` From c878e48b83c3dd3aee889fd0ce7d4294aca35786 Mon Sep 17 00:00:00 2001 From: FaithBeam <32502411+FaithBeam@users.noreply.github.com> Date: Wed, 1 Jul 2020 16:18:47 -0400 Subject: [PATCH 5/6] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index be9f976..e57b753 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,10 @@ A library to manipulate The Sims 1 .far files. Currently only extracts .bmps from UIGraphics.far, and has only been used on The Sims 1 Complete Collection UIGraphics.far with CRC32: 8E03701F. +## Installation + +You can install Sims.Far as a nupkg from nuget.org. + ## Usage ```cs From 38c62400d2476da7cd0fd70fc762f130d524e9b1 Mon Sep 17 00:00:00 2001 From: FaithBeam <32502411+FaithBeam@users.noreply.github.com> Date: Thu, 2 Jul 2020 05:13:59 -0400 Subject: [PATCH 6/6] Create LICENSE --- LICENSE | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..5f38867 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 FaithBeam + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.