How pangbox/rebang works
Rebang is an educational matching-decompilation project for an early-2000s Windows game client. Its repository contains reconstructed client code alongside analysis utilities; the README describes delinked objects as aids to rebuilding the original executable, not as a general-purpose relocatable toolchain. The client’s user-facing flow and many gameplay subsystems are apparent from the tree, but most implementation excerpts were not supplied, so those connections are left unverified. Solid edges are limited to relationships visible in the provided excerpts or SOURCE INDEX.
Main entry points: ProjectG ProjectG client · frwndmanager.cpp Window manager · lobbymain.cpp Lobby and social · rebang.h Delinked objects
Components 20
UI and rendering
- UI element document
source/client/Fresh/include/frelement.h - Window manager
source/client/Fresh/source/frwndmanager.cpp - UI desktop
source/client/Fresh/source/frdesktop.cpp - UI graphics
source/client/Fresh/source/frgraphicinterface.cpp - Texture cache
source/client/Fresh/texturecache/tcachemanager.cpp
Game client
- ProjectG client
source/client/ProjectG - Input handling
source/client/ProjectG/inputmanager.cpp - Networking
source/client/ProjectG/networksystem.cpp - Golf gameplay
source/client/ProjectG/golfrulebase.cpp - Lobby and social
source/client/ProjectG/lobbymain.cpp - Friend management
source/client/ProjectG/buddymanager.cpp
Shared services
- Item catalog
source/shared/itemmanager.cpp - Lua scripting
source/shared/LuaSystem/luascriptmanager.cpp - Sound playback
source/client/ProjectG/soundmanager.cpp
Decompilation aids
- Delinked objects
source/rebang/rebang.h - PDB inspection
tools/pdbinfo.py - COFF symbols
tools/coffsym.py
Other components
- Player
- Game resources
- Game servers
Connections 19
- Player → ProjectG client: uses
- ProjectG client → Input handling: handles input
source/client/ProjectG/inputmanager.cpp - ProjectG client → Lobby and social: enters lobby
- Lobby and social → Golf gameplay: starts gameplay
- ProjectG client → Networking: communicates
- Networking → Game servers: exchanges data
- Lobby and social → Friend management: offers social features
- ProjectG client → Item catalog: uses item data
source/shared/itemmanager.cpp - ProjectG client → Lua scripting: runs scripts
source/shared/LuaSystem/luascriptmanager.cpp - ProjectG client → Sound playback: plays sound
source/client/ProjectG/soundmanager.cpp - ProjectG client → Window manager: uses UI
source/client/Fresh/source/frwndmanager.cpp - Window manager → UI desktop: creates
source/client/Fresh/source/frwndmanager.cpp - Window manager → UI graphics: creates
source/client/Fresh/source/frwndmanager.cpp - Window manager → UI element document: loads layouts
- Window manager → Game resources: loads resources
- ProjectG client → Texture cache: caches textures
- Lua scripting → Game resources: loads root.lua
source/shared/LuaSystem/luascriptmanager.cpp - Delinked objects → PDB inspection: supports analysis
- Delinked objects → COFF symbols: uses symbols