How weexnes/openprostreetclient works
OpenProStreet Client is an NFS ProStreet plugin that connects players to OpenProStreet servers and adds race-day, results, overlay, and Discord features. The main workflow starts when the plugin attaches to the game, initializes its hooks and server link, then supports login and play; race results are reported to the server, while server messages update lobby and overlay state. The graph preserves README capabilities even where implementation was not sampled. Edges are limited to startup calls and server dispatches visible in excerpts or README statements; unsampled modules may have additional interactions.
Main entry points: main.cpp Plugin startup · server_link.cpp Server link · discord_rpc.cpp Discord presence · overlay.cpp Race overlay
Components 27
Plugin runtime
- Plugin startup
src/main.cpp - Game hooks
src/game/hooks.cpp
Server connection
- Server link
src/net/server_link.cpp - Secure channel
src/net/secure_client.cpp - Auto login
src/game/auto_login.cpp
Race and lobby
- Quick match
src/game/quick_match.cpp - Event voting
src/game/event_vote.cpp - Race results
src/game/race_results.cpp - Track and mode
src/game/map.cpp - Car identity
src/game/car.cpp
Game modifications
- LAN menu
src/game/lan_menu.cpp - LAN fixes
src/game/lanfix.cpp - Game tweaks
src/game/tweaks.cpp - Car and file fixes
src/game/vault_fixes.cpp - Atmosphere
src/game/atmosphere.cpp - Camera orbit
src/game/camera_orbit.cpp - ReShifted driving
src/game/reshifted.cpp - Borderless display
src/game/borderless.cpp - Graphics hooks
src/game/graphics.cpp - Texture changes
src/game/textures.cpp - Allowed cars
src/game/car_lock.cpp - Input focus
src/game/input_focus.cpp
Player experience
- Race overlay
src/game/overlay.cpp - Discord presence
src/discord/discord_rpc.cpp
Other components
- Player
- ProStreet game
- Discord
Connections 32
- Player → ProStreet game: plays
- ProStreet game → Plugin startup: loads plugin
src/main.cpp - Plugin startup → Server link: initializes
src/main.cpp - Plugin startup → Quick match: initializes
src/main.cpp - Plugin startup → Game tweaks: initializes
src/main.cpp - Plugin startup → Car and file fixes: initializes
src/main.cpp - Plugin startup → Race overlay: initializes
src/main.cpp - Plugin startup → Atmosphere: initializes
src/main.cpp - Plugin startup → Race results: initializes
src/main.cpp - Plugin startup → Allowed cars: initializes
src/main.cpp - Plugin startup → Event voting: initializes
src/main.cpp - Plugin startup → Auto login: initializes
src/main.cpp - Plugin startup → LAN menu: initializes
src/main.cpp - Plugin startup → Camera orbit: initializes
src/main.cpp - Plugin startup → ReShifted driving: initializes
src/main.cpp - Plugin startup → Borderless display: initializes
src/main.cpp - Plugin startup → Graphics hooks: initializes
src/main.cpp - Plugin startup → Texture changes: initializes
src/main.cpp - Plugin startup → Discord presence: initializes
src/main.cpp - Server link → Secure channel: uses channel
src/net/server_link.cpp - Server link → Race overlay: updates connection state
src/net/server_link.cpp - Server link → Allowed cars: sets allowed cars
src/net/server_link.cpp - Server link → Quick match: sets matched room
src/net/server_link.cpp - Server link → Atmosphere: sets room look
src/net/server_link.cpp - Server link → Race overlay: delivers notices
src/net/server_link.cpp - Quick match → Server link: requests matchmaking
- Race results → Server link: submits results
- Server link → Event voting: routes votes
- Discord presence → Discord: updates presence
- Discord presence → Track and mode: reads track mode
src/discord/discord_rpc.cpp - Discord presence → Car identity: reads car
src/discord/discord_rpc.cpp - Discord presence → Race overlay: reads race state
src/discord/discord_rpc.cpp