How feilingshu/gwct works
GWCT is a Windows desktop utility for configuring game-window size and position, with optional process-affinity and launcher handling. The user adds target executables and settings in the WPF interface, then pushes configuration; the core monitors processes, captures matching game windows, and applies window behavior. The README also describes persistent settings, local exception files, pause controls, styling, logs, statistics, and update checks. Some subsystem links are documented rather than visible in the excerpts, so those are marked unverified; sampled source confirms process-to-window delegation and log buffering.
Main entry points: MainWindow.xaml.cs Settings UI · ProcMgr.cs Process discovery · WinCtrl.cs Window control · API.cs Windows APIs
Components 17
Desktop interface
- Settings UI
GWCT/MainWindow.xaml.cs - App bootstrap
GWCT/App.xaml.cs
Configuration
- Target settings
gwctcore/gwctcore/Datas/Settings.cs - Config persistence
gwctcore/gwctcore/Cfg/Bin.cs - Local exceptions
gwctcore/gwctcore/Cfg - Update check
gwctcore/gwctcore/Cfg/Update.cs
Runtime control
- Process discovery
gwctcore/gwctcore/Tool/ProcMgr.cs - Window control
gwctcore/gwctcore/Tool/WinCtrl.cs - Window styling
gwctcore/gwctcore/Tool/DWM.cs - CPU affinity
gwctcore/gwctcore/CoreCtrl/Core.cs - CPU detection
gwctcore/gwctcore/CoreCtrl/CPUID.cs - Efficiency mode
gwctcore/gwctcore/CoreCtrl/EcoQoS.cs - Windows APIs
gwctcore/gwctcore/CoreCtrl/API.cs
Telemetry
- Log stream
gwctcore/gwctcore/Datas/Logs.cs - Log buffer
gwctcore/gwctcore/Datas/CircularBuffer.cs - Task statistics
gwctcore/gwctcore/Datas/TaskCount.cs
Other components
- User
Connections 17
- User → Settings UI: configures
README.md - Settings UI → Config persistence: pushes settings
README.md - Settings UI → Target settings: edits targets
GWCT/MainWindow.xaml.cs - Settings UI → Process discovery: supplies configuration
GWCT/MainWindow.xaml.cs - Settings UI → Log stream: adds log entries
GWCT/MainWindow.xaml.cs - Settings UI → Update check: checks updates
GWCT/MainWindow.xaml.cs - Process discovery → Window control: registers windows
gwctcore/gwctcore/Tool/ProcMgr.cs - Log stream → Log buffer: stores entries
gwctcore/gwctcore/Datas/Logs.cs - Process discovery → Task statistics: tracks work
gwctcore/gwctcore/Tool/ProcMgr.cs - Window control → Task statistics: tracks work
gwctcore/gwctcore/Tool/WinCtrl.cs - Window control → Windows APIs: uses system calls
- CPU affinity → CPU detection: detects cores
- CPU affinity → Windows APIs: sets affinity
- Efficiency mode → Windows APIs: sets process mode
- App bootstrap → Efficiency mode: initializes mode
GWCT/App.xaml.cs - Settings UI → Local exceptions: offers local settings
GWCT/MainWindow.xaml.cs - Settings UI → Window styling: configures appearance