diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-04-02 04:09:45 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-04-02 04:09:58 -0400 |
| commit | e9d64eaacaa4e2a71489b24b2b45ac26fbaead3c (patch) | |
| tree | 45777ba39223777b4bf7907c4f8c6c738a8c3e18 /src/main.c | |
| parent | ab278aca29eebc23eb6538fb5060f51afb8dca86 (diff) | |
| download | fujinet-chat-e9d64eaacaa4e2a71489b24b2b45ac26fbaead3c.tar.gz | |
Replace conf->blah with config.blah (see the definition of "OS" in <atari.h>). 6075 bytes free.
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -98,7 +98,7 @@ void txbuf_send_str(const char *str) { int fn_connect(void) { scr_display(SCR_SERVER); scr_print_current("Connecting to: "); - scr_print_current(conf->url); + scr_print_current(config.url); scr_eol_current(); err = nopen(); @@ -136,9 +136,9 @@ void init_channels(void) { char i; for(i = 0; i < MAX_SCREENS - 2; i++) { - if(conf->channels[i][0]) { + if(config.channels[i][0]) { scr_status[i + 2] = SCR_INACTIVE; - strcpy(scr_names[i + 2], conf->channels[i]); + strcpy(scr_names[i + 2], config.channels[i]); } } } @@ -167,14 +167,14 @@ void reconnect(void) { } void main(void) { - bell_type = conf->alert_type; /* TODO: have bell.s read staight from the struct */ + bell_type = config.alert_type; /* TODO: have bell.s read staight from the struct */ OS.shflok = 0; // turn off shift-lock. OS.soundr = 0; // Turn off SIO beeping sound - OS.color2 = conf->colors[0]; /* text BG, user-selected */ - OS.color1 = conf->colors[1]; + OS.color2 = config.colors[0]; /* text BG, user-selected */ + OS.color1 = config.colors[1]; OS.color0 = 0x06; /* grey for inactive */ OS.color3 = 0x46; /* red for highlight */ - OS.noclik = conf->disable_keyclick; + OS.noclik = config.disable_keyclick; hz = (GTIA_READ.pal & 0x0e) ? 60 : 50; |
