{"id":13496856,"url":"https://github.com/matcool/mat-dash","last_synced_at":"2025-04-12T19:24:28.299Z","repository":{"id":98991092,"uuid":"407323227","full_name":"matcool/mat-dash","owner":"matcool","description":"the greatest !!!library for windows gd modding!!","archived":false,"fork":false,"pushed_at":"2023-04-13T14:56:17.000Z","size":44,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T13:45:40.263Z","etag":null,"topics":["geometry-dash"],"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/matcool.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-16T21:44:36.000Z","updated_at":"2024-07-24T02:22:35.000Z","dependencies_parsed_at":"2023-06-18T14:12:15.293Z","dependency_job_id":null,"html_url":"https://github.com/matcool/mat-dash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matcool%2Fmat-dash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matcool%2Fmat-dash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matcool%2Fmat-dash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matcool%2Fmat-dash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matcool","download_url":"https://codeload.github.com/matcool/mat-dash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248619693,"owners_count":21134509,"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":["geometry-dash"],"created_at":"2024-07-31T20:00:15.826Z","updated_at":"2025-04-12T19:24:28.265Z","avatar_url":"https://github.com/matcool.png","language":"C++","funding_links":[],"categories":["Libraries"],"sub_categories":[],"readme":"\n# MAT dash\n\na simple c++ library to wrap hooks for calling conventions found in 32 bit windows gd\n\nNote this is not a hooking library, only a template wrapper for detours and trampolines, though it does come with a minhook binding\n\n\nThis project is very basic, as its only temporary while [Geode](https://github.com/geode-sdk/) is in the works\n\n## Usage\n```cpp\n#include \u003cmatdash.hpp\u003e\n\n// defines add_hook to use minhook\n#include \u003cmatdash/minhook.hpp\u003e\n\n// lets you use mod_main\n#include \u003cmatdash/boilerplate.hpp\u003e\n\n#include \u003cgd.h\u003e\n\nusing namespace cocos2d;\n\nclass MenuLayerMod : public gd::MenuLayer {\npublic:\n    // here the name cant be `init` as that'd make it a virtual\n    // which doesnt work with the current code\n    bool init_() {\n        if (!matdash::orig\u003c\u0026MenuLayerMod::init_\u003e(this)) return false;\n\n        auto label = CCLabelBMFont::create(\"Hello world!\", \"bigFont.fnt\");\n        label-\u003esetPosition(ccp(200, 200));\n        addChild(label);\n\n        return true;\n    }\n};\n\nvoid MenuLayer_onNewgrounds(gd::MenuLayer* self, CCObject* sender) {\n    std::cout \u003c\u003c \"cool!\" \u003c\u003c std::endl;\n    matdash::orig\u003c\u0026MenuLayer_onNewgrounds\u003e(self, sender);\n}\n\nbool GJDropDownLayer_init(gd::GJDropDownLayer* self, const char* title, float height) {\n    return matdash::orig\u003c\u0026GJDropDownLayer_init\u003e(self, \"my own title\", height * 0.5f);\n}\n\nmatdash::cc::thiscall\u003cvoid\u003e PlayLayer_update(gd::PlayLayer* self, float dt) {\n    matdash::orig\u003c\u0026PlayLayer_update\u003e(self, dt * 0.5f);\n    return {};\n}\n\nvoid PlayLayer_update_(gd::PlayLayer* self, float dt) {\n    // another way of specifying the calling convention\n    matdash::orig\u003c\u0026PlayLayer_update_, matdash::Thiscall\u003e(self, dt * 0.5f);\n}\n\nvoid mod_main(HMODULE) {\n    matdash::add_hook\u003c\u0026MenuLayerMod::init_\u003e(gd::base + 0x1907b0);\n    matdash::add_hook\u003c\u0026MenuLayer_onNewgrounds\u003e(gd::base + 0x191e90);\n    matdash::add_hook\u003c\u0026GJDropDownLayer_init\u003e(gd::base + 0x113530);\n    matdash::add_hook\u003c\u0026PlayLayer_update\u003e(gd::base + 0x2029c0);\n\n    // another way of specifying the calling convention\n    matdash::add_hook\u003c\u0026PlayLayer_update_, matdash::Thiscall\u003e(gd::base + 0x2029c0);\n}\n```\n\n# Setup\n\nAdd the include folder to the include directories\n\n# Credit\nThanks to [pie](https://github.com/poweredbypie) for some help on the templates and thanks to [AndreNIH](https://github.com/AndreNIH) for helping out and inspiring the calling convention encoding syntax\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatcool%2Fmat-dash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatcool%2Fmat-dash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatcool%2Fmat-dash/lists"}