MySearchPath(char *installDir, char *name, char *fullname)\r
{\r
char *dummy;\r
+ if(name[0] == '~' && name[1] == '\\') { // [HGM] recognize ~ as HOMEPATH environment variable\r
+ installDir = getenv("HOMEPATH");\r
+ name += 2;\r
+ strcpy(fullname, installDir);\r
+ strcat(fullname, "\\");\r
+ strcat(fullname, name);\r
+ return strlen(fullname);\r
+ }\r
return (int) SearchPath(installDir, name, NULL, MSG_SIZ, fullname, &dummy);\r
}\r
\r