How vrc-emulator/vrc-eac-emulator works
This repository implements a VRChat EasyAntiCheat emulator: a Windows-side compatibility DLL communicates with a Linux-side emulator through HTTP and WebSocket interfaces. The principal flow is client initialization and packet exchange, followed by Linux-side EOS platform and AntiCheat operations; HTTP task requests cover login, login-status, and ID/string operations. The README also documents a Linux launch guard that validates EAC offsets before preventing two EAC actions. Edges use the supplied excerpts, source-index references, or README; unsampled transport and server wiring is not asserted.
Main entry points: handlers Packet feature handlers · client_packet_handler.cpp Client packet handler · emulator_client.cpp Emulator client · api Login and account API handlers
Components 23
Windows Client Emulator
- Windows compatibility DLL
src/win/dllmain.cpp - Emulator client
src/win/emulator_client.cpp - Client packet handler
src/win/handler/handlers/client_packet_handler.cpp - Client handler registry
src/win/handler/handler_registry.cpp - WebSocket client
src/win/sock/websocket_client.cpp - Packet sender
src/win/sock/packet_sender.cpp - EOS compatibility implementations
src/win/eos_impl
Shared Protocol and API
- Protocol packet types
src/common/protocol/packets - Packet codec
src/common/protocol/packet_codec.cpp - HTTP request/response factory
src/common/api/session_factory.h - JSON serialization
includes/json.hpp - Base64 encoding
includes/base64.hpp
Linux Emulator
- Linux emulator bootstrap
src/linux/bootstrapper.cpp - WebSocket server
src/linux/servers/websocket_server.cpp - HTTP server
src/linux/servers/http_server.cpp - Login and account API handlers
src/linux/api - EOS platform and Connect
src/linux/eos/eos_platform.cpp - EOS AntiCheat
src/linux/eos/eos_anticheat.cpp - Packet handler registry
src/linux/handlers/handler_registry.h - Packet feature handlers
src/linux/handlers
Linux Launch Guard
- EAC memory-protection guard
tools/eac_mprotect_guard.py
Other components
- VRChat game
- Proton-launched game
Connections 25
- VRChat game → Windows compatibility DLL: loads
- Windows compatibility DLL → Emulator client: initializes
- Emulator client → Client packet handler: instantiates
src/win/emulator_client.cpp - Emulator client → Packet sender: starts
src/win/emulator_client.cpp - Emulator client → WebSocket client: runs
src/win/emulator_client.cpp - Emulator client → HTTP request/response factory: creates responses
src/win/emulator_client.cpp - Client packet handler → Client handler registry: registers handlers
src/win/handler/handlers/client_packet_handler.cpp - Client packet handler → Packet sender: sends packets
src/win/handler/handlers/client_packet_handler.cpp - Client packet handler → EOS compatibility implementations: dispatches EOS callbacks
src/win/handler/handlers/client_packet_handler.cpp - Client packet handler → Protocol packet types: handles packets
src/win/handler/handlers/client_packet_handler.cpp - WebSocket client → Packet codec: encodes packets
src/win/sock/websocket_client.cpp - WebSocket client → Client packet handler: dispatches packets
src/win/sock/websocket_client.cpp - Packet sender → Protocol packet types: sends packets
- Linux emulator bootstrap → WebSocket server: starts server
- Linux emulator bootstrap → HTTP server: starts server
- Packet handler registry → Packet feature handlers: routes packets
src/linux/handlers/handler_registry.h - Packet feature handlers → EOS platform and Connect: uses platform
src/linux/handlers/anticheat/begin_session_handler.cpp - Packet feature handlers → EOS AntiCheat: calls AntiCheat
src/linux/handlers/anticheat/begin_session_handler.cpp - Packet feature handlers → Protocol packet types: decodes packet data
src/linux/handlers/anticheat/begin_session_handler.cpp - Packet feature handlers → WebSocket server: sends notifications
src/linux/handlers/notification/notify_message_to_server_handler.cpp - Login and account API handlers → EOS platform and Connect: gets Connect interface
src/linux/api/login_handler.cpp - Login and account API handlers → WebSocket server: waits for connection
src/linux/api/login_handler.cpp - Login and account API handlers → HTTP request/response factory: uses request types
src/common/api/session_factory.h - Packet feature handlers → Base64 encoding: decodes messages
src/linux/handlers/notification/notify_message_to_server_handler.cpp - EAC memory-protection guard → Proton-launched game: launches and guards
README.md