Mercurial > wgsdk
comparison src/config.c @ 9:07f0e2f43204
*: add the restrict keyword when necessary
also fixed some typos in the README
author | Paper |
---|---|
date | Fri, 16 Dec 2022 21:55:37 -0500 |
parents | be4835547dd0 |
children | 42ac054c0231 |
comparison
equal
deleted
inserted
replaced
8:00399cc5f7ce | 9:07f0e2f43204 |
---|---|
28 | 28 |
29 /* from main */ | 29 /* from main */ |
30 extern void update_rich_presence_details(void); | 30 extern void update_rich_presence_details(void); |
31 extern struct config config; | 31 extern struct config config; |
32 | 32 |
33 int cfg_load(struct config* config) { | 33 int cfg_load(struct config* restrict config) { |
34 char line[MAX_LINE_LENGTH] = {0}, | 34 char line[MAX_LINE_LENGTH] = {0}, |
35 *path = dirtools_concat_paths(getenv("APPDATA"), "Winamp\\Plugins\\wgsdk\\config.txt"); | 35 *path = dirtools_concat_paths(getenv("APPDATA"), "Winamp\\Plugins\\wgsdk\\config.txt"); |
36 FILE* config_fp = fopen(path, "r"); | 36 FILE* config_fp = fopen(path, "r"); |
37 if (config_fp == NULL) { | 37 if (config_fp == NULL) { |
38 free(path); | 38 free(path); |