Skip to content

Commit

Permalink
Support BepInEx 6 as well as 5 and update readme to correspond
Browse files Browse the repository at this point in the history
  • Loading branch information
BarackOBusiness committed Dec 18, 2024
1 parent 9da8b89 commit b252407
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
17 changes: 15 additions & 2 deletions Background Customizer/Background Customizer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,25 @@
<Description>My second plugin</Description>
<Version>1.1.1</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>9.0</LangVersion>
<LangVersion>10.0</LangVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)'=='B5'">
<OutputPath>Release/BackgroundCustomizer.BepInEx5</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='B6'">
<OutputPath>Release/BackgroundCustomizer.BepInEx6</OutputPath>
</PropertyGroup>

<ItemGroup Condition="'$(Configuration)'=='B5'">
<PackageReference Include="BepInEx.Core" Version="5.*" />
</ItemGroup>
<ItemGroup Condition="'$(Configuration)'=='B6'">
<PackageReference Include="BepInEx.Unity" Version="6.0.0-pre.*" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="BepInEx.Analyzers" Version="1.*" PrivateAssets="all" />
<PackageReference Include="BepInEx.Core" Version="5.*" />
<PackageReference Include="BepInEx.PluginInfoProps" Version="1.*" />
<PackageReference Include="UnityEngine.Modules" Version="2020.3.25" IncludeAssets="compile" />
</ItemGroup>
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ Running the game with the plugin installed will generate the necessary config fi
You can edit the `GOI.plugins.BackgroundMod.cfg` file in that folder as per your preference, different sky zones are categorized into separate areas in the config file which you can configure there, as well as lighting values and fog.

## Building from source & development
To make contributions to the plugin, after cloning the repository, create a `lib` folder in the `Background Customizer` folder. In this folder you put all the referenced libraries which can be found in the game data folder, if a specified UnityEngine module is missing on compile time, put it into a `net45` folder inside of the libs folder.
To make contributions to the plugin, after cloning the repository, create a `lib` folder in the `Background Customizer` folder. In this folder you put all the referenced libraries which can be found in the game data folder.
Once done, you can run `dotnet build` with the -c parameter specifying either B5 or B6 for BepInEx 5 or 6 respectively to generate a build.

Dependencies:
* Assembly-CSharp
* Assembly-CSharp.dll

0 comments on commit b252407

Please sign in to comment.