GithubHelp home page GithubHelp logo

Comments (5)

axhlzy avatar axhlzy commented on May 28, 2024

抽空我在这个还得研究一下,静态变量好像不属于 class

// list fields from methodinfo
function lffm(methodInfo, instance) {
listFieldsFromMethodInfo(methodInfo, instance)
}

// list fields from class
function lffc(klass, instance) {
//对于枚举类型也可以使用,枚举类型也是fields
listFieldsFromCls(klass, instance)
}

可以用这个简写一点

from il2cpphookscripts.

xavieryang007 avatar xavieryang007 commented on May 28, 2024

我写出来了

利用il2cpp_field_static_get_value实现

function readStatic(namespace,className,fieldName){
    const field =findField(namespace, className, fieldName);
    if (field.isNull()) {
        return field;
    }
    const addrOut = Memory.alloc(Process.pointerSize);
    il2cpp_field_static_get_value(field, addrOut);
    return addrOut.readPointer();
 }

from il2cpphookscripts.

xavieryang007 avatar xavieryang007 commented on May 28, 2024

		public string asdas
		{

			get
			{
				return null;
			}

			private set
			{
			}
		}

对于这类有什么好的方法吗?这类一般如何读取

from il2cpphookscripts.

xavieryang007 avatar xavieryang007 commented on May 28, 2024

如果参数是byte[] 一般如何读取和转换

from il2cpphookscripts.

axhlzy avatar axhlzy commented on May 28, 2024

我写出来了

利用il2cpp_field_static_get_value实现

function readStatic(namespace,className,fieldName){
    const field =findField(namespace, className, fieldName);
    if (field.isNull()) {
        return field;
    }
    const addrOut = Memory.alloc(Process.pointerSize);
    il2cpp_field_static_get_value(field, addrOut);
    return addrOut.readPointer();
 }

已更新 感谢分享

from il2cpphookscripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.