Giter Club home page Giter Club logo

il2cpp's Introduction

A wrapper around il2cpp

Support Server (discord)

Quickstart

First of all, quite importantly, this wrapper makes some assumptions about your environment. It assumes that the current golang binary is a c-shared library
injected into a Unity process built using il2cpp. It also assumes that the initialization process has gone far enough for all assemblies to be loaded.

This wrapper updates as my GoMod project evolves, which you can get in the support server above.

Here is a simple example fetching some metadata about images/classes/methods/properties/fields

package main

import (
	"github.com/RinLovesYou/il2cpp"
	"fmt"
)

func init() {
	domain := il2cpp.GetDomain()
	domain.AttachThread()

	for _, image := range domain.GetImages() {
		utils.Log("Image: %s", image.GetName())

		for _, class := range image.GetClasses() {
			utils.Log("Class: %s", class.GetName())

			for _, method := range class.GetMethods() {
				utils.Log("Method: %s", method.GetName())
				utils.Log("ReturnType: %s", method.GetReturnType().GetName())
				for _, param := range method.GetParams() {
					utils.Log("Param: %s", param.GetName())
				}
			}

			for _, property := range class.GetProperties() {
				utils.Log("Property: %s", property.GetName())
				utils.Log("ReturnType: %s", property.GetGet().GetReturnType().GetName())
			}

			for _, field := range class.GetFields() {
				utils.Log("Field: %s", field.GetName())
			}

		}
	}
}

func main() {

}

You can compile this using go build --buildmode=c-shared -o GoMod.dll .

il2cpp's People

Contributors

rinlovesyou avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.