How 0xciel/unitedgooninglib works
UGlib is a small C++ runtime library that simplifies IL2CPP game-memory access. The main workflow is: a caller initializes against a game module, uses offsets to create callable addresses or field handles, then invokes methods or reads and writes instance fields. Pointer-chain dereferencing and runtime-offset conversion support related memory tasks. The README also documents hook usage and includes MinHook and Detours examples. The map reflects the sampled header and implementation; example integrations are shown as optional usage, not built-in hook engines.
Main entry points: UGlib.cpp Module Initialization · UGlib.h Method Addresses · minhook_example.cpp MinHook Example · detours_example.cpp Detours Example
Components 11
Initialization
- Module Initialization
include/UGlib.cpp - Base and Status
include/UGlib.h
Memory Access
- Method Addresses
include/UGlib.h - Instance Fields
include/UGlib.h - Bound Objects
include/UGlib.h - Pointer Chains
include/UGlib.h - Offset Conversion
include/UGlib.h
Hook Examples
- MinHook Example
examples/minhook_example.cpp - Detours Example
examples/detours_example.cpp
Other components
- Library User
- Game Module
Connections 11
- Library User → Module Initialization: initializes
README.md - Module Initialization → Game Module: resolves module
include/UGlib.cpp - Module Initialization → Base and Status: sets base and status
include/UGlib.cpp - Library User → Method Addresses: defines and calls
README.md - Method Addresses → Base and Status: uses module base
include/UGlib.h - Library User → Instance Fields: reads and writes
README.md - Library User → Bound Objects: binds instance
include/UGlib.h - Library User → Pointer Chains: dereferences chain
README.md - Library User → Offset Conversion: converts offset
README.md - Library User → MinHook Example: uses example
README.md - Library User → Detours Example: uses example
README.md