Skip to content

Commit

Permalink
Bump version to v1.4, tiny perf updates
Browse files Browse the repository at this point in the history
  • Loading branch information
BlockBuilder57 committed May 2, 2021
1 parent be2ae40 commit 0f62419
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 31 deletions.
4 changes: 2 additions & 2 deletions CursedDlls.BepInEx/Cursed.BetterBipods/BetterBipodsPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
using Steamworks;
using UnityEngine;

[assembly: AssemblyVersion("1.3")]
[assembly: AssemblyVersion("1.4")]
namespace Cursed.BetterBipods
{
[BepInPlugin("dll.cursed.betterbipods", "CursedDlls - Better Bipods", "1.3")]
[BepInPlugin("dll.cursed.betterbipods", "CursedDlls - Better Bipods", "1.4")]
public class BetterBipodsPlugin
{
private void Awake()
Expand Down
4 changes: 2 additions & 2 deletions CursedDlls.BepInEx/Cursed.FullAuto/FullAutoPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
using RUST.Steamworks;
using Steamworks;

[assembly: AssemblyVersion("1.3")]
[assembly: AssemblyVersion("1.4")]
namespace Cursed.FullAuto
{
[BepInPlugin("dll.cursed.fullauto", "CursedDlls - Full Auto", "1.3")]
[BepInPlugin("dll.cursed.fullauto", "CursedDlls - Full Auto", "1.4")]
public class FullAutoPlugin : BaseUnityPlugin
{
private static readonly FastInvokeHandler UpdateSafetyPos =
Expand Down
4 changes: 2 additions & 2 deletions CursedDlls.BepInEx/Cursed.LoadScene/LoadScenePlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
using UnityEngine;
using Valve.VR;

[assembly: AssemblyVersion("1.3")]
[assembly: AssemblyVersion("1.4")]
namespace Cursed.LoadScene
{
[BepInPlugin("dll.cursed.loadscene", "CursedDlls - Load Scene", "1.3")]
[BepInPlugin("dll.cursed.loadscene", "CursedDlls - Load Scene", "1.4")]
public class LoadScenePlugin : BaseUnityPlugin
{
private static ConfigEntry<string> _sceneLoad1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
using Steamworks;
using UnityEngine;

[assembly: AssemblyVersion("1.3")]
[assembly: AssemblyVersion("1.4")]
namespace Cursed.RemoveAttachmentChecks
{
[BepInPlugin("dll.cursed.removeattachmentchecks", "CursedDlls - Remove Attachment Checks", "1.3")]
[BepInPlugin("dll.cursed.removeattachmentchecks", "CursedDlls - Remove Attachment Checks", "1.4")]
public class RemoveAttachmentChecksPlugin : BaseUnityPlugin
{
private static ConfigEntry<bool> _allAttachmentsAreScalable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
using Steamworks;
using UnityEngine;

[assembly: AssemblyVersion("1.3")]
[assembly: AssemblyVersion("1.4")]
namespace RemoveMagCheck
{
[BepInPlugin("dll.cursed.removemagcheck", "CursedDlls - Remove Magazine (and clip) Checks", "1.3")]
[BepInPlugin("dll.cursed.removemagcheck", "CursedDlls - Remove Magazine (and clip) Checks", "1.4")]
public class RemoveMagCheckPlugin : BaseUnityPlugin
{
public static ManualLogSource Logger { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
using Steamworks;
using UnityEngine;

[assembly: AssemblyVersion("1.3")]
[assembly: AssemblyVersion("1.4")]
namespace Cursed.RemoveRoundTypeCheck
{
[BepInPlugin("dll.cursed.removeroundtypecheck", "CursedDlls - Remove RoundType Checks", "1.3")]
[BepInPlugin("dll.cursed.removeroundtypecheck", "CursedDlls - Remove RoundType Checks", "1.4")]
public class RemoveRoundTypeCheckPlugin : BaseUnityPlugin
{
public static ManualLogSource Logger { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
using RUST.Steamworks;
using Steamworks;

[assembly: AssemblyVersion("1.3")]
[assembly: AssemblyVersion("1.4")]
namespace Cursed.SuppressAssemblyLoadErrors
{
[BepInPlugin("dll.cursed.suppressassemblyloaderrors", "CursedDlls - Suppress Assembly.GetTypes errors", "1.3")]
[BepInPlugin("dll.cursed.suppressassemblyloaderrors", "CursedDlls - Suppress Assembly.GetTypes errors", "1.4")]
public class SuppressAssemblyLoadErrors : BaseUnityPlugin
{
internal static ManualLogSource logger;
Expand All @@ -35,16 +35,5 @@ public static void HandleReflectionTypeLoad(ref Exception __exception, ref Type[
logger.LogDebug($"Encountered ReflectionTypeLoadException which was suppressed. Full error: \n${TypeLoader.TypeLoadExceptionToString(re)}");
}
}

/*
* Skiddie prevention
*/
[HarmonyPatch(typeof(HighScoreManager), nameof(HighScoreManager.UpdateScore), new Type[] { typeof(string), typeof(int), typeof(Action<int, int>) })]
[HarmonyPatch(typeof(HighScoreManager), nameof(HighScoreManager.UpdateScore), new Type[] { typeof(SteamLeaderboard_t), typeof(int) })]
[HarmonyPrefix]
public static bool HSM_UpdateScore()
{
return false;
}
}
}
11 changes: 7 additions & 4 deletions CursedDlls.BepInEx/Cursed.TimeScale/TimeScaleFixPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
using UnityEngine;
using Valve.VR;

[assembly: AssemblyVersion("1.3")]
[assembly: AssemblyVersion("1.4")]
namespace Cursed.TimeScale
{
[BepInPlugin("dll.cursed.timescale", "CursedDlls - Time Scaler", "1.3")]
[BepInPlugin("dll.cursed.timescale", "CursedDlls - Time Scaler", "1.4")]
public class TimeScaleFixPlugin : BaseUnityPlugin
{
private static ConfigEntry<float> _timeScaleIncrement;
Expand Down Expand Up @@ -68,8 +68,11 @@ public static void UpdateTimeScaleText(FVRWristMenu __instance, bool ___m_isActi
if (___m_isActive)
{
__instance.Clock.text = $"Time Scale: {Time.timeScale.ToString(CultureInfo.InvariantCulture)}";
try { __instance.Clock.text += $"\n{DateTime.Now.ToString(_wristMenuDateTimeFormat.Value)}"; }
catch { } //yes I know this is bad but if users want custom things in their wrist menu, let them
if (!String.IsNullOrEmpty(_wristMenuDateTimeFormat.Value))
{
try { __instance.Clock.text += $"\n{DateTime.Now.ToString(_wristMenuDateTimeFormat.Value)}"; }
catch { } //yes I know this is bad but if users want custom things in their wrist menu, let them
}
}
}

Expand Down
4 changes: 2 additions & 2 deletions CursedDlls.BepInEx/Cursed.UnlockAll/UnlockAllPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
using Steamworks;
using UnityEngine;

[assembly: AssemblyVersion("1.3")]
[assembly: AssemblyVersion("1.4")]
namespace Cursed.UnlockAll
{
[BepInPlugin("dll.cursed.unlockall", "CursedDlls - Unlock All Items", "1.3")]
[BepInPlugin("dll.cursed.unlockall", "CursedDlls - Unlock All Items", "1.4")]
public class UnlockAllPlugin : BaseUnityPlugin
{
private static ConfigEntry<bool> _overwriteRewardsTxt;
Expand Down

0 comments on commit 0f62419

Please sign in to comment.