Skip to content

Commit

Permalink
readd 1.39 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeroluna committed Jan 14, 2025
1 parent 63d4583 commit 46b8bf2
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
name: Build
strategy:
matrix:
game-version: [ 1.29.1, 1.34.2, 1.37.1, 1.40.0 ]
game-version: [ 1.29.1, 1.34.2, 1.37.1, 1.39.1, 1.40.0 ]
uses: Aeroluna/workflows/.github/workflows/bs-build-version-release.yml@main
with:
project-path: Vivify/Vivify.csproj
Expand Down
6 changes: 6 additions & 0 deletions Vivify.sln
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ Global
Release-1.37.1|Any CPU = Release-1.37.1|Any CPU
Release-1.40.0|Any CPU = Release-1.40.0|Any CPU
Debug-1.40.0|Any CPU = Debug-1.40.0|Any CPU
Debug-1.39.1|Any CPU = Debug-1.39.1|Any CPU
Release-1.39.1|Any CPU = Release-1.39.1|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1A4D027F-DF68-498D-A3C7-89B997F38608}.Debug-1.34.2|Any CPU.ActiveCfg = Debug-1.34.2|Any CPU
Expand All @@ -46,6 +48,10 @@ Global
{1A4D027F-DF68-498D-A3C7-89B997F38608}.Release-1.40.0|Any CPU.Build.0 = Release-1.40.0|Any CPU
{1A4D027F-DF68-498D-A3C7-89B997F38608}.Debug-1.40.0|Any CPU.ActiveCfg = Debug-1.40.0|Any CPU
{1A4D027F-DF68-498D-A3C7-89B997F38608}.Debug-1.40.0|Any CPU.Build.0 = Debug-1.40.0|Any CPU
{1A4D027F-DF68-498D-A3C7-89B997F38608}.Debug-1.39.1|Any CPU.ActiveCfg = Debug-1.39.1|Any CPU
{1A4D027F-DF68-498D-A3C7-89B997F38608}.Debug-1.39.1|Any CPU.Build.0 = Debug-1.39.1|Any CPU
{1A4D027F-DF68-498D-A3C7-89B997F38608}.Release-1.39.1|Any CPU.ActiveCfg = Release-1.39.1|Any CPU
{1A4D027F-DF68-498D-A3C7-89B997F38608}.Release-1.39.1|Any CPU.Build.0 = Release-1.39.1|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
8 changes: 4 additions & 4 deletions Vivify/Controllers/CameraPropertyController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Vivify.Managers;
using Vivify.PostProcessing;
using Vivify.TrackGameObject;
#if LATEST
#if !PRE_V1_39_1
using JetBrains.Annotations;
using Zenject;
#elif PRE_V1_37_1
Expand All @@ -21,7 +21,7 @@ internal class CameraPropertyController : MonoBehaviour

private CullingCameraController _cullingCameraController = null!;
private BloomPrePass _bloomPrePass = null!;
#if LATEST
#if !PRE_V1_39_1
private SettingsManager _settingsManager = null!;
#endif
#if !PRE_V1_37_1
Expand All @@ -39,7 +39,7 @@ internal DepthTextureMode? DepthTextureMode
#if !PRE_V1_37_1
if (_depthTextureController != null)
{
#if LATEST
#if !PRE_V1_39_1
_depthTextureController.Init(_settingsManager);
#else
_depthTextureController.Start();
Expand Down Expand Up @@ -108,7 +108,7 @@ internal void Reset()
MainEffect = null;
}

#if LATEST
#if !PRE_V1_39_1
[UsedImplicitly]
[Inject]
private void Construct(
Expand Down
6 changes: 3 additions & 3 deletions Vivify/ObjectPrefab/Hijackers/MpbControllerHijacker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ internal class MpbControllerHijacker : IHijacker<GameObject>
private readonly Transform _child;
private readonly MaterialPropertyBlockController _materialPropertyBlockController;
private readonly Renderer[] _originalRenderers;
#if !LATEST
#if PRE_V1_39_1
private List<int>? _cachedNumberOfMaterialsInRenderers;
#endif
private Renderer[]? _cachedRenderers;
Expand Down Expand Up @@ -40,7 +40,7 @@ public void Activate(List<GameObject> gameObjects, bool hideOriginal)
gameObject.transform.SetParent(_child, false);
}

#if !LATEST
#if PRE_V1_39_1
if (_materialPropertyBlockController._isInitialized)
{
_cachedNumberOfMaterialsInRenderers =
Expand Down Expand Up @@ -72,7 +72,7 @@ public void Activate(List<GameObject> gameObjects, bool hideOriginal)

public void Deactivate()
{
#if !LATEST
#if PRE_V1_39_1
if (_cachedNumberOfMaterialsInRenderers != null)
{
_materialPropertyBlockController._numberOfMaterialsInRenderers =
Expand Down
4 changes: 2 additions & 2 deletions Vivify/Vivify.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
<OutputType>Library</OutputType>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<Configurations>Debug-1.29.1;Release-1.29.1;Debug-1.34.2;Release-1.34.2;Debug-1.37.1;Release-1.37.1;Debug-1.40.0;Release-1.40.0</Configurations>
<Configurations>Debug-1.29.1;Release-1.29.1;Debug-1.34.2;Release-1.34.2;Debug-1.37.1;Release-1.37.1;Debug-1.39.1;Release-1.39.1;Debug-1.40.0;Release-1.40.0</Configurations>
</PropertyGroup>

<PropertyGroup>
<PluginId>Vivify</PluginId>
<PluginName>Vivify</PluginName>
<Author>Aeroluna</Author>
<Version>0.1.13</Version>
<Version>0.1.14</Version>
<Description>Bring your map to life!</Description>
</PropertyGroup>
<ItemGroup>
Expand Down

0 comments on commit 46b8bf2

Please sign in to comment.