comparison util.c @ 1673:ab3b465c052c

Fix Windows implentation of get_config_dir() so config file gets saved to the right place. Fix location for sticky_path file on all platforms
author Michael Pavone <pavone@retrodev.com>
date Thu, 03 Jan 2019 19:30:41 -0800
parents 137dbd05ceab
children c362f2c7766a
comparison
equal deleted inserted replaced
1672:12d0c7c4ad80 1673:ab3b465c052c
889 return NULL; 889 return NULL;
890 } 890 }
891 891
892 char const *get_config_dir() 892 char const *get_config_dir()
893 { 893 {
894 return get_userdata_dir(); 894 static char* confdir;
895 if (!confdir) {
896 char const *base = get_userdata_dir();
897 if (base) {
898 confdir = alloc_concat(base, PATH_SEP "blastem");
899 }
900 }
901 return confdir;
895 } 902 }
896 #define CONFIG_PREFIX "" 903 #define CONFIG_PREFIX ""
897 #define SAVE_PREFIX "" 904 #define SAVE_PREFIX ""
898 905
899 #else 906 #else