This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Reflection; | |
using UnityEngine; | |
using UnityInjector.Attributes; | |
namespace CM3D2.SystemShortcutExtension.Plugin | |
{ | |
[PluginFilter("CM3D2x64"), PluginFilter("CM3D2x86"), PluginFilter("CM3D2VRx64")] | |
[PluginName("CM3D2 SystemShortcutExtension"), PluginVersion("0.0.0.0")] | |
public class SystemShortcutExtension : UnityInjector.PluginBase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$build_base = 'https://gist.github.com/asm256/ed75d84a9e89802821f8/raw/' | |
$build_script = 'build.ps1' | |
$build_lib = 'build_lib.ps1' | |
$web = new-object net.webclient | |
[Text.Encoding]::UTF8.GetString($web.DownloadData("$build_base$build_lib")) | iex | |
(WebDownloadString $web "$build_base$build_script")| iex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* コンパイルしてManagedフォルダ内へ置いてください | |
* csc /t:library /r:Assembly-CSharp-firstpass.dll CM3D2.ArchiveReplacer.Hook.cs | |
* CM3D2_KAIZOU\_Data フォルダに追加・置換したいファイルを置いてください | |
*/ | |
// @AB_addarg /r:Assembly-CSharp-firstpass.dll | |
// @AB_addarg /lib:%managed% | |
// @AB_install %managed% | |
using System; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://gist.githubusercontent.com/asm256/9bfb88336a1433e2328a/raw/bootstrap.ps1'))" | |
/* | |
コンソールの文字化けを直すUnityInjectorプラグイン | |
必要なもの | |
.net Framework 3.5 | |
ビルド方法 | |
CM3D2_KAIZOU\UnityInjector\ 内に保存して | |
C:\Windows\Microsoft.NET\Framework\v3.5\csc /t:library /lib:..\CM3D2x64_Data\Managed /r:UnityEngine.dll /r:UnityInjector.dll /unsafe CM3D2.ConsoleCodePage.Plugin.cs | |
でビルド | |
*/ |