Decompiled source of HairFix v1.0.1

Mods/Hairfix.dll

Decompiled 2 months ago
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using Hairfix;
using Il2CppInterop.Runtime.InteropTypes.Arrays;
using MelonLoader;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: MelonInfo(typeof(HairfixClass), "HairFix", "1.0.1", "blankochan", null)]
[assembly: MelonGame("Buckethead Entertainment", "RUMBLE")]
[assembly: MelonColor(255, 255, 170, 238)]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("0.0.0.0")]
namespace Hairfix;

public class HairfixClass : MelonMod
{
	private const string comment = "simpliest bug ever qwq";

	public override void OnSceneWasLoaded(int _, string sceneName)
	{
		//IL_0045: Unknown result type (might be due to invalid IL or missing references)
		if (!(sceneName == "Loader"))
		{
			Mesh val = ((IEnumerable<Mesh>)Resources.FindObjectsOfTypeAll<Mesh>()).First((Mesh mesh) => ((Object)mesh).name == "Top7");
			val.colors32 = Il2CppStructArray<Color32>.op_Implicit(Enumerable.Repeat<Color32>(new Color32(byte.MaxValue, (byte)0, (byte)0, byte.MaxValue), ((Il2CppArrayBase<Color32>)(object)val.colors32).Length).ToArray());
		}
	}
}