Skip to content

Instantly share code, notes, and snippets.

@absoIute
absoIute / main.cpp
Created June 2, 2024 17:46
XINPUT1_4 proxy dll injection
#pragma comment(linker, "/EXPORT:XInputGetState=XInputGetState,@2")
#include <Windows.h>
#ifdef __cplusplus
extern "C" {
#endif
HINSTANCE s_instance = NULL;
struct XINPUT_STATE {};
@absoIute
absoIute / blocks.h
Created February 11, 2024 21:26
blocks.h (2.2)
std::map<int, const char*> blocks = std::map<int, const char*>
{
{1, "square_01_001.png"},
{2, "square_02_001.png"},
{3, "square_03_001.png"},
{4, "square_04_001.png"},
{5, "square_05_001.png"},
{6, "square_06_001.png"},
{7, "square_07_001.png"},
{83, "square_08_001.png"},
@absoIute
absoIute / GeodeTranslationLayer.h
Created January 23, 2024 00:20
Geode Translation Layer
#include <Geode/utils/Result.hpp>
#include <Geode/loader/Tulip.hpp>
namespace geode
{
class Hook;
class Loader
{
protected:
@absoIute
absoIute / main.cpp
Created January 20, 2024 19:51
1.9 level manager
//THIS CODE IS OLD AND CRINGE
//AND FOUR YEARS OLD
#define _CRT_SECURE_NO_WARNINGS
#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "C:\\Users\\benst\\Documents\\Developer\\Libraries\\Detours\\lib\\detours.lib")
#pragma comment(lib, "C:\\Users\\benst\\Downloads\\discord_game_sdk\\lib\\x86\\discord_game_sdk.dll.lib")
#include <Windows.h>
@absoIute
absoIute / VersionDetect.cpp
Last active November 12, 2024 13:23
Geometry Dash Version Detect
#include "VersionDetect.h"
#include <Windows.h>
std::map<uint32_t, std::string> VersionDetect::s_buildMap =
{
{ 1419173053, "1.900" },
{ 1419880840, "1.910" },
{ 1421745341, "1.920" },
{ 1440638199, "2.000" },
{ 1440643927, "2.001" },
@absoIute
absoIute / gist:140714e87c3958448f477dc9d5675b90
Created December 20, 2023 19:02
libcocos2d 2.113 -> 2.200
ADDED IN 2.2
?addToVertices@CCLayerColor@cocos2d@@QAEXVCCPoint@2@00@Z
?addPrioTargetedDelegate@CCTouchDispatcher@cocos2d@@QAEXPAVCCTouchDelegate@2@H_N@Z
?onTextFieldInsertText@CCTextFieldDelegate@cocos2d@@UAE_NPAVCCTextFieldTTF@2@PBDHW4enumKeyCodes@2@@Z
?updateEmissionRate@CCParticleSystem@cocos2d@@UAEXXZ
?getStartSizeEqualToEnd@CCParticleSystem@cocos2d@@QBE_NXZ
?fastRemoveObjectAtIndexChild@CCArray@cocos2d@@QAEXI@Z
?setFadeInTime@CCParticleSystem@cocos2d@@QAEXM@Z
?getPreviousPriority@CCLayer@cocos2d@@UAEHXZ
?applySmoothFix@CCDirector@cocos2d@@QAEXXZ
@absoIute
absoIute / version_detect.cpp
Created September 30, 2023 20:46
Simple Version Detection
#include "version_detect.h"
#include <Windows.h>
std::map<uint32_t, std::string> VersionDetect::s_buildMap =
{
{ 1419173053, "1.900" },
{ 1419880840, "1.910" },
{ 1421745341, "1.920" },
{ 1440638199, "2.000" },
@absoIute
absoIute / str_gd.cpp
Last active June 20, 2023 16:04
gd::string
#include "str_gd.h"
#include <Windows.h>
namespace gd
{
AllocType alloc = reinterpret_cast<AllocType>(GetProcAddress(LoadLibrary(L"MSVCR120.DLL"), "??2@YAPAXI@Z"));
DeallocType dealloc = reinterpret_cast<DeallocType>(GetProcAddress(LoadLibrary(L"MSVCR120.DLL"), "??3@YAXPAX@Z"));
string::string()
- FILE
[0x00]: header
[0x08]: meta_size
[0x0C]: meta
[0x0C + meta_size]: reserved
[0x0C + meta_size + 0x08]: event_size
[0x0C + meta_size + 0x0C]: event_count
[0x0C + meta_size + 0x10]: events
[0x0C + meta_size + 0x10 + event_size * event_count]: footer
{ 0x6464ff,0x6464ff,0x6465ff,0x6465ff,0x6466ff,0x6467ff,0x6467ff,0x6468ff,0x6468ff,0x6469ff,0x646aff,0x646aff,0x646bff,0x646bff,0x646cff,0x646dff,0x646dff,0x646eff,0x646eff,0x646fff,0x6470ff,0x6470ff,0x6471ff,0x6471ff,0x6472ff,0x6473ff,0x6473ff,0x6474ff,0x6475ff,0x6475ff,0x6476ff,0x6476ff,0x6477ff,0x6478ff,0x6478ff,0x6479ff,0x6479ff,0x647aff,0x647bff,0x647bff,0x647cff,0x647cff,0x647dff,0x647eff,0x647eff,0x647fff,0x647fff,0x6480ff,0x6481ff,0x6481ff,0x6482ff,0x6483ff,0x6483ff,0x6484ff,0x6484ff,0x6485ff,0x6486ff,0x6486ff,0x6487ff,0x6487ff,0x6488ff,0x6489ff,0x6489ff,0x648aff,0x648aff,0x648bff,0x648cff,0x648cff,0x648dff,0x648dff,0x648eff,0x648fff,0x648fff,0x6490ff,0x6490ff,0x6491ff,0x6492ff,0x6492ff,0x6493ff,0x6494ff,0x6494ff,0x6495ff,0x6495ff,0x6496ff,0x6497ff,0x6497ff,0x6498ff,0x6498ff,0x6499ff,0x649aff,0x649aff,0x649bff,0x649bff,0x649cff,0x649dff,0x649dff,0x649eff,0x649eff,0x649fff,0x64a0ff,0x64a0ff,0x64a1ff,0x64a2ff,0x64a2ff,0x64a3ff,0x64a3ff,0x64a4ff,0x64a5ff,0x64a5ff,0x64a6ff,0x64a6ff,0x64a7ff,0x64a8ff,0x64a