I'm hacking on some BepInEx code, which is a Unity Game Modding framework, and one of the samples in the docs involves patching the random number generator to always return 4.
which is an example that has gotten a lot funnier since last month
Discussion
I'm hacking on some BepInEx code, which is a Unity Game Modding framework, and one of the samples in the docs involves patching the random number generator to always return 4.
which is an example that has gotten a lot funnier since last month
I forgot that I hate .net assemblies/.DLL nonsense
to access serial ports in C#, simply use System.IO.Ports, which is part of the System.IO.Ports.dll assembly. If that's not part of the Unity game you're already hacking, FUCK YOU!
@foone stuuuupid question but. Can't you just drop the dll next to the exe and have it pick it up?
@miniBill tried it, no. it needs additional dependencies that aren't listed on the nuget page and I hate .net too much to understand how to fix this
@foone valid. Tbh the serial code in .net was not amazing when I interacted with it. Their async API throws exceptions on the wrong thread, I had to create an AppDomain to avoid it crashing my whole program
I'm either going to have to switch to some other IPC, use the win32 api directly, or write a small program that does serial and just run that externally. none of those are fun
I don't really want to do any of them but I also have to stay up for 5 more hours, so I guess I get to do one or all of them
@foone lmao I forgot about that! damnit I could've made that a timely reference