diff options
Diffstat (limited to 'src/config.h')
| -rw-r--r-- | src/config.h | 23 |
1 files changed, 23 insertions, 0 deletions
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 ); |
