{"id":17336129,"url":"https://github.com/stackdoubleflow/merge","last_synced_at":"2025-04-14T17:31:04.999Z","repository":{"id":41277749,"uuid":"389368290","full_name":"StackDoubleFlow/Merge","owner":"StackDoubleFlow","description":"il2cpp pre-init metadata edit library ","archived":false,"fork":false,"pushed_at":"2024-10-13T20:22:56.000Z","size":137,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-01T05:42:38.487Z","etag":null,"topics":["mod"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StackDoubleFlow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-25T14:35:50.000Z","updated_at":"2023-04-08T16:53:10.000Z","dependencies_parsed_at":"2022-09-21T01:10:40.387Z","dependency_job_id":null,"html_url":"https://github.com/StackDoubleFlow/Merge","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StackDoubleFlow%2FMerge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StackDoubleFlow%2FMerge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StackDoubleFlow%2FMerge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StackDoubleFlow%2FMerge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StackDoubleFlow","download_url":"https://codeload.github.com/StackDoubleFlow/Merge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223639403,"owners_count":17177816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mod"],"created_at":"2024-10-15T15:28:05.516Z","updated_at":"2024-11-08T06:03:45.564Z","avatar_url":"https://github.com/StackDoubleFlow.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Merge\n\nMerge was initially intended to be a mod loader designed to load mods created in C# in the worst way possible, but now it's useful for other purposes.\n\n## Usage\n\nThis library is released to [QPM](https://github.com/sc2ad/QuestPackageManager).\nSimply add and restore the dependency like so:\n\n```bash\nqpm dependency add \"merge\"\nqpm restore\n```\n\n## Platform Support\n\nMerge is intended to be used for IL2CPP 24.5 (Unity 2019.4.21-2019.4.x) on AArch64. Functionalily on other platforms is not guaranteed. \n\n## Example\n\n```c++\n#include \"merge-api.h\"\n\nusing namespace Merge::API;\n\nvoid CreateExampleClass() {\n    TypeDefinitionIndex objectIdx = FindTypeDefinitionIndex(\"System\", \"Object\");\n    CRASH_UNLESS(objectIdx \u003e= 0);\n\n    AssemblyIndex assembly = CreateAssembly(\"NewAssembly\");\n    ImageIndex image = CreateImage(assembly, \"NewAssembly.dll\");\n\n    MergeTypeDefinition newTypeDef;\n    newTypeDef.name = \"NewClass\";\n    newTypeDef.namespaze = \"ExampleNamespace\";\n    newTypeDef.parent = GetTypeDefinition(objectIdx)-\u003ebyvalTypeIndex;\n    newTypeDef.attrs = 0;\n    newTypeDef.typeEnum = IL2CPP_TYPE_CLASS;\n    newTypeDef.valueType = false;\n    newTypeDef.interfaces = {};\n    std::vector\u003cMergeTypeDefinition\u003e types = {newTypeDef};\n    TypeDefinitionIndex newTypeIdx = CreateTypes(image, std::span(types));\n}\n```\n\n## License\n\nMerge is licensed under the [MIT License](./LICENSE).\n\n\u003csub\u003e\u003csub\u003e\u003csub\u003eWork In Progress : )\u003c/sub\u003e\u003c/sub\u003e\u003c/sub\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackdoubleflow%2Fmerge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackdoubleflow%2Fmerge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackdoubleflow%2Fmerge/lists"}