Skip to content

Commit

Permalink
Use more reliable way of detecting studio in KK and KKS
Browse files Browse the repository at this point in the history
  • Loading branch information
ManlyMarco committed Oct 3, 2021
1 parent a686736 commit 4c5b283
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 1 addition & 4 deletions src/HideAllUI.KoikatsuSunshine/HideAllUI.cs
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
using BepInEx;
using ChaCustom;
using HarmonyLib;
using UnityEngine.SceneManagement;

namespace HideAllUI
{
[BepInIncompatibility("HideStudioUI")]
[BepInIncompatibility("HideHInterface")]
[BepInPlugin(GUID, PluginName, Version)]
public class HideAllUI : HideAllUICore
{
protected override void Awake()
{
base.Awake();

if(SceneManager.GetActiveScene().name == "StudioStart")
if(UnityEngine.Application.productName == "CharaStudio")
Harmony.PatchAll(typeof(HideStudioUI));
else
{
Expand Down
3 changes: 1 addition & 2 deletions src/HideAllUI.Koikatu/HideAllUI.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using BepInEx;
using ChaCustom;
using HarmonyLib;
using UnityEngine.SceneManagement;

namespace HideAllUI
{
Expand All @@ -14,7 +13,7 @@ protected override void Awake()
{
base.Awake();

if(SceneManager.GetActiveScene().name == "StudioStart")
if(UnityEngine.Application.productName == "CharaStudio")
Harmony.PatchAll(typeof(HideStudioUI));
else
{
Expand Down

0 comments on commit 4c5b283

Please sign in to comment.