Mercurial > wgsdk
diff src/config.c @ 4:59bf702b2b21
*: stylistic changes
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 14 Aug 2022 13:17:32 -0400 |
parents | 7abb5d8b20ea |
children | be4835547dd0 |
line wrap: on
line diff
--- a/src/config.c Sun Aug 07 22:47:41 2022 -0400 +++ b/src/config.c Sun Aug 14 13:17:32 2022 -0400 @@ -13,7 +13,7 @@ #include <windowsx.h> #define MAX_LINE_LENGTH 128 -extern struct config_t config; // from main +extern struct config config; // from main static unsigned int crc32b(unsigned char *message) { int i, j; @@ -33,7 +33,7 @@ return ~crc; } -int cfg_load(struct config_t* config) { +int cfg_load(struct config* config) { char line[MAX_LINE_LENGTH] = {0}, *path = dirtools_concat_paths(getenv("APPDATA"), "Winamp\\Plugins\\wgsdk\\config.txt"); FILE* config_fp; @@ -58,7 +58,7 @@ return 0; } -int cfg_save(struct config_t config) { +int cfg_save(struct config config) { char* path = dirtools_concat_paths(getenv("APPDATA"), "Winamp\\Plugins\\wgsdk"); FILE* config_fp; assert(!dirtools_create_directory(path));