[new] 支持Unity 2023

main
walon 2024-05-25 09:45:18 +08:00
parent 3de931a3af
commit d45974c6b4
4 changed files with 10 additions and 3 deletions

View File

@ -25,6 +25,11 @@
"hybridclr" : { "branch":"v5.4.0"}, "hybridclr" : { "branch":"v5.4.0"},
"il2cpp_plus": { "branch":"v2022-tuanjie-5.4.0"} "il2cpp_plus": { "branch":"v2022-tuanjie-5.4.0"}
}, },
{
"unity_version":"2023",
"hybridclr" : { "branch":"v5.4.0"},
"il2cpp_plus": { "branch":"v6000-5.4.0"}
},
{ {
"unity_version":"6000", "unity_version":"6000",
"hybridclr" : { "branch":"v5.4.0"}, "hybridclr" : { "branch":"v5.4.0"},

View File

@ -12,7 +12,7 @@ using System.IO;
namespace HybridCLR.MonoHook namespace HybridCLR.MonoHook
{ {
#if UNITY_2021_1_OR_NEWER && !UNITY_6000_0_OR_NEWER #if UNITY_2021_1_OR_NEWER && !UNITY_2023_1_OR_NEWER
[InitializeOnLoad] [InitializeOnLoad]
public class CopyStrippedAOTAssembliesHook public class CopyStrippedAOTAssembliesHook
{ {

View File

@ -12,7 +12,7 @@ using System.IO;
namespace HybridCLR.MonoHook namespace HybridCLR.MonoHook
{ {
#if UNITY_2022 || UNITY_6000_0_OR_NEWER #if UNITY_2022 || UNITY_2023_1_OR_NEWER
[InitializeOnLoad] [InitializeOnLoad]
public class GetIl2CppFolderHook public class GetIl2CppFolderHook
{ {

View File

@ -126,6 +126,7 @@ namespace HybridCLR.Editor.Installer
case 2020: return "2020.3.0"; case 2020: return "2020.3.0";
case 2021: return "2021.3.0"; case 2021: return "2021.3.0";
case 2022: return "2022.3.0"; case 2022: return "2022.3.0";
case 2023: return "2023.2.0";
case 6000: return "6000.0.0"; case 6000: return "6000.0.0";
default: return $"2020.3.0"; default: return $"2020.3.0";
} }
@ -145,7 +146,8 @@ namespace HybridCLR.Editor.Installer
{ {
return CompatibleType.Incompatible; return CompatibleType.Incompatible;
} }
if ((version.major == 2019 && version.minor1 < 4) || (version.major >= 2020 && version.major < 6000 && version.minor1 < 3)) if ((version.major == 2019 && version.minor1 < 4)
|| (version.major >= 2020 && version.major <= 2022 && version.minor1 < 3))
{ {
return CompatibleType.MaybeIncompatible; return CompatibleType.MaybeIncompatible;
} }