Three different approaches to detours are explored: The RedirectionHelper class contains the interesting functions. The code has only been tested on Windows, but there seem to be some mods that use my code to detour methods (and I have not seen complaints of them not working on Linux/Mac). redirect calls from one method to another) in Unity's Mono version (圆4). I experimented with three different ways to detour methods (i.e. Proof of concept for a simple detour for functions in Cities: Skylines (or more generally: Unity 5 圆4 on Windows.) Please respect that I put some time into researching a viable method to replace code and give credit where credit is due. This license allows you to do pretty much whatever you want, if you give credit. The file with the relevant code has a pretty clear license statement (MIT license). Mission accomplished :)īut now, there's a better, shinier, safer, more awesome alternative out there: Harmony It served its purpose and enabled advanced modding for more than just Cities: Skylines, making the world a bit better. It's a hack, has always been a hack, and was never intended to be more than that.
0 Comments
Leave a Reply. |