#pragma once #include "util.h" struct CONFIG { I32 port; I32 units; // 0 km/h, 1 mph I32 keep; F64 tach_x, tach_y, tach_r; // center + radius, fractions F64 scale; F64 blur; I32 show_boost; I32 flash_needle; F64 boost_x, boost_y, boost_r; I32 show_abs, show_tcs, show_lc, show_tires; F64 tire_x, tire_y, tire_sc; I32 autoscale_rpm; F64 rpm_off; char path[512]; time_t mtime; }; void config_init( CONFIG *c ); U8 config_poll( CONFIG *c );