Skip to content

Instantly share code, notes, and snippets.

@just-ero
Created January 23, 2022 15:14
Show Gist options
  • Save just-ero/467825f8a62d562d8dfd2c493da74ea3 to your computer and use it in GitHub Desktop.
Save just-ero/467825f8a62d562d8dfd2c493da74ea3 to your computer and use it in GitHub Desktop.
  • install Visual Studio; important: select .NET Framework 4.6.1 to be installed additionally to everything else!
  • create a new project and select "Class Library (.NET Framework)", make sure to select .NET Framework 4.6.1 as the version
  • from your Solution Explorer (on the right by default), right-click "References", select "Add Reference...", click "Browse..." at the bottom and navigate to your LiveSplit folder, where you need to add LiveSplit.Core.dll and UpdateManager.dll
  • add a new class to your project which implements the IComponent interface or extends one of its implementing classes
  • add a new class to your project that implements IComponentFactory
  • implement the Create() method of this interface, such that it returns and instance of the component class you created
  • add a ComponentFactory attribute to the AssemblyInfo.cs file and give it the type of your factory class:
[assembly: ComponentFactory(typeof(MyComponentFactory))]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment