summaryrefslogtreecommitdiff
path: root/src/config.h
blob: cca2d78cc184fe6ea086ef329bc630c69037d117 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 );