From 57d172df4db1451ba3caeeb0ca485d0845a61912 Mon Sep 17 00:00:00 2001 From: aura Date: Mon, 13 Jul 2026 10:15:03 +0200 Subject: push source --- src/config.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/config.h (limited to 'src/config.h') diff --git a/src/config.h b/src/config.h new file mode 100644 index 0000000..cca2d78 --- /dev/null +++ b/src/config.h @@ -0,0 +1,23 @@ +#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 ); -- cgit v1.2.3