Skip to content

Commit

Permalink
feat: rebuild for resonite!
Browse files Browse the repository at this point in the history
  • Loading branch information
hantabaru1014 committed Sep 30, 2023
1 parent ffdbc01 commit 45065bd
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 22 deletions.
10 changes: 5 additions & 5 deletions NeosBetterIMESupport.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using NeosModLoader;
using ResoniteModLoader;
using HarmonyLib;
using FrooxEngine;
using UnityEngine.InputSystem;
using UnityEngine.InputSystem.LowLevel;
using BaseX;
using Elements.Core;
using System;
using System.Reflection;
using System.Collections.Generic;
Expand All @@ -12,11 +12,11 @@

namespace NeosBetterIMESupport
{
public class NeosBetterIMESupport : NeosMod
public class NeosBetterIMESupport : ResoniteMod
{
public override string Name => "NeosBetterIMESupport";
public override string Author => "hantabaru1014";
public override string Version => "1.0.1";
public override string Version => "2.0.0";
public override string Link => "https://github.com/hantabaru1014/NeosBetterIMESupport";

private static Keyboard? _keyboard;
Expand All @@ -29,7 +29,7 @@ public override void OnEngineInit()
_keyboard = Keyboard.current;
_keyboard.onIMECompositionChange += OnIMECompositionChange;

var harmony = new Harmony("net.hantabaru1014.NeosBetterIMESupport");
var harmony = new Harmony("dev.baru.resonite.NeosBetterIMESupport");
harmony.PatchAll();
TextEditor_EditCoroutine_Patch.Patch(harmony);
}
Expand Down
35 changes: 18 additions & 17 deletions NeosBetterIMESupport.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,43 +4,44 @@
<TargetFramework>net472</TargetFramework>
<LangVersion>10</LangVersion>
<Nullable>enable</Nullable>
<NeosPath>$(MSBuildThisFileDirectory)NeosVR</NeosPath>
<NeosPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\NeosVR\')">C:\Program Files (x86)\Steam\steamapps\common\NeosVR\</NeosPath>
<NeosPath Condition="Exists('C:\Neos\app\')">C:\Neos\app\</NeosPath>
<NeosPath Condition="Exists('$(HOME)/.steam/steam/steamapps/common/NeosVR/')">$(HOME)/.steam/steam/steamapps/common/NeosVR/</NeosPath>
<AppName>Resonite</AppName>
<ModLoaderShort>rml</ModLoaderShort>
<AppPath>$(MSBuildThisFileDirectory)$(AppName)</AppPath>
<AppPath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\$(AppName)\')">C:\Program Files (x86)\Steam\steamapps\common\$(AppName)\</AppPath>
<AppPath Condition="Exists('$(HOME)/.steam/steam/steamapps/common/$(AppName)/')">$(HOME)/.steam/steam/steamapps/common/$(AppName)/</AppPath>
<CopyLocal>false</CopyLocal>
<CopyToMods Condition="'$(CopyToMods)'==''">true</CopyToMods>
<DebugSymbols Condition="'$(Configuration)'=='Release'">false</DebugSymbols>
<DebugType Condition="'$(Configuration)'=='Release'">None</DebugType>
<Version>1.0.1</Version>
<Version>2.0.0</Version>
<Authors>hantabaru1014</Authors>
</PropertyGroup>

<ItemGroup>
<Reference Include="HarmonyLib">
<HintPath>$(NeosPath)nml_libs\0Harmony.dll</HintPath>
<HintPath Condition="Exists('$(NeosPath)0Harmony.dll')">$(NeosPath)0Harmony.dll</HintPath>
<HintPath>$(AppPath)$(ModLoaderShort)_libs\0Harmony.dll</HintPath>
<HintPath Condition="Exists('$(AppPath)0Harmony.dll')">$(AppPath)0Harmony.dll</HintPath>
</Reference>
<Reference Include="NeosModLoader">
<HintPath>$(NeosPath)Libraries\NeosModLoader.dll</HintPath>
<HintPath Condition="Exists('$(NeosPath)NeosModLoader.dll')">$(NeosPath)NeosModLoader.dll</HintPath>
<Reference Include="$(AppName)ModLoader">
<HintPath>$(AppPath)$(AppName)ModLoader.dll</HintPath>
<HintPath>$(AppPath)Libraries\$(AppName)ModLoader.dll</HintPath>
</Reference>
<Reference Include="FrooxEngine">
<HintPath>$(NeosPath)Neos_Data\Managed\FrooxEngine.dll</HintPath>
<HintPath>$(AppPath)$(AppName)_Data\Managed\FrooxEngine.dll</HintPath>
</Reference>
<Reference Include="BaseX">
<HintPath>$(NeosPath)Neos_Data\Managed\BaseX.dll</HintPath>
<Reference Include="Elements.Core">
<HintPath>$(AppPath)$(AppName)_Data\Managed\Elements.Core.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>$(NeosPath)Neos_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
<HintPath>$(AppPath)$(AppName)_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="Unity.InputSystem">
<HintPath>$(NeosPath)Neos_Data\Managed\Unity.InputSystem.dll</HintPath>
<HintPath>$(AppPath)$(AppName)_Data\Managed\Unity.InputSystem.dll</HintPath>
</Reference>
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CopyToMods)'=='true'">
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(NeosPath)nml_mods" />
<Message Text="Copied $(TargetFileName) to $(NeosPath)" Importance="high" />
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(AppPath)$(ModLoaderShort)_mods" />
<Message Text="Copied $(TargetFileName) to $(AppPath)" Importance="high" />
</Target>
</Project>
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ https://user-images.githubusercontent.com/16133291/200890052-040475d1-109d-49d4-

At this time, tested only with Win10, Microsoft Japanese IME.

## For Resonite
v2.x は[ResoniteModLaoder](https://github.com/resonite-modding-group/ResoniteModLoader)向けです。
このModの名前にNeosとついてしまっていますが、直す気はないです。Resoniteがリリースされて要望を受け付けるようになったら、公式に対応してほしい内容なのでそれが叶うまでの繋ぎとしてこのModをお使いください。

v2.x is for [ResoniteModLaoder](https://github.com/resonite-modding-group/ResoniteModLoader).
I have no plan to fix the fact that this mod has Neos in its name, and once Resonite is released and starts taking requests, please use this mod as a bridge until that happens, as it is something I would like to see officially addressed.

## Installation
1. Install [NeosModLoader](https://github.com/zkxs/NeosModLoader).
2. Place [NeosBetterIMESupport.dll](https://github.com/hantabaru1014/NeosBetterIMESupport/releases/latest/download/NeosBetterIMESupport.dll) into your `nml_mods` folder. This folder should be at `C:\Program Files (x86)\Steam\steamapps\common\NeosVR\nml_mods` for a default install. You can create it if it's missing, or if you launch the game once with NeosModLoader installed it will create the folder for you.
Expand Down

0 comments on commit 45065bd

Please sign in to comment.