Skip to content

Commit a1fcbd3

Browse files
authored
Merge pull request #632 from misternebula/dev
0.28.3
2 parents 4bd6524 + ed2b3e4 commit a1fcbd3

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

QSB/PoolSync/CustomNomaiRemoteCamera.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace QSB.PoolSync;
44

55
internal class CustomNomaiRemoteCamera : MonoBehaviour
66
{
7-
private OWCamera _camera;
7+
public OWCamera _camera;
88
private AudioListener _audioListener;
99
private NomaiViewerImageEffect _viewerImageEffect;
1010
private CustomNomaiRemoteCameraPlatform _owningPlatform;

QSB/PoolSync/CustomNomaiRemoteCameraPlatform.cs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using QSB.Utility;
77
using System.Collections.Generic;
88
using System.Linq;
9+
using System.Reflection;
910
using UnityEngine;
1011

1112
namespace QSB.PoolSync;
@@ -516,8 +517,16 @@ private void SwitchToRemoteCamera()
516517

517518
private void SwitchToPlayerCamera()
518519
{
519-
// does nothing except run CCU's prefix
520-
_oldPlatform.SwitchToPlayerCamera();
520+
if (QSBCore.Helper.Interaction.ModExists("xen.CommonCameraUtility"))
521+
{
522+
// this is a really fucking dumb fix, but i cannot be
523+
// bothered to rewrite this class to make this work better
524+
var ccuAssembly = QSBCore.Helper.Interaction.TryGetMod("xen.CommonCameraUtility").GetType().Assembly;
525+
var utilClass = ccuAssembly.GetType("CommonCameraUtil.CommonCameraUtil");
526+
var instance = utilClass.GetField("Instance", BindingFlags.Public | BindingFlags.Static).GetValue(null);
527+
var removeCameraMethod = utilClass.GetMethod("RemoveCamera", BindingFlags.Public | BindingFlags.Instance);
528+
removeCameraMethod.Invoke(instance, new object[] { _slavePlatform._ownedCamera._camera });
529+
}
521530

522531
if (_slavePlatform._visualSector != null)
523532
{

QSB/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"body": "- Disable *all* other mods. (Can heavily affect performance)\n- Make sure you are not running any other network-intensive applications."
88
},
99
"uniqueName": "Raicuparta.QuantumSpaceBuddies",
10-
"version": "0.28.2",
10+
"version": "0.28.3",
1111
"owmlVersion": "2.9.0",
1212
"dependencies": [ "_nebula.MenuFramework", "JohnCorby.VanillaFix" ],
1313
"pathsToPreserve": [ "debugsettings.json" ],

0 commit comments

Comments
 (0)