BNM-Android: Use the Internal:Load () function to crash.
arch:arm64-v8a
android version:12
bnm version:latest(2.1.0)
hook libraries:have not
stacktrace:
cpp(jni) Code:
C#Code :
using System;
using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;
public class Player : MonoBehaviour
{
void Start()
{
}
void Update()
{
}
private Config m_Config;
public class Config
{
string Name;
int Health;
int Coins;
public Config(string name, int health, int coins)
{
Name = name;
Health = health;
Coins = coins;
}
public int getHealth()
{
return Health;
}
}
public void OnButtonClick()
{
Debug.Log("onclick");
if (Application.platform == RuntimePlatform.Android)
{
AndroidJavaClass clazz = new AndroidJavaClass("android.util.Log");
clazz.CallStatic<Int32>("i", "TAG", "unitylog");
}
Config config = new("il2cpp", 100, 100);
testPrivate(config);
testPublic(config);
}
private void testPrivate(Config config)
{
Debug.Log("TestPrivate:OnInvoke");
}
public void testPublic(Config config)
{
Debug.Log("TestPublic:OnInvoke");
}
}
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (2 by maintainers)
It relates to shadowhook, use unique mode to initialise shadowhook should solve this problem.