Fixed path in Windows new config file dialog.
This commit is contained in:
parent
b6b9aab6dc
commit
bb4eb4c3b0
1 changed files with 8 additions and 2 deletions
|
|
@ -96,12 +96,18 @@ static BOOL CALLBACK config_selection_dlgproc(HWND hdlg, UINT message, WPARAM wP
|
||||||
case IDC_NEW:
|
case IDC_NEW:
|
||||||
{
|
{
|
||||||
char s[512];
|
char s[512];
|
||||||
|
int c;
|
||||||
|
|
||||||
strcpy(s, configs_path);
|
strcpy(s, configs_path);
|
||||||
put_backslash(s);
|
put_backslash(s);
|
||||||
pclog("Dir %s\n", s);
|
strcat(s, "*.cfg");
|
||||||
|
for (c = 0; c < strlen(s); c++)
|
||||||
|
{
|
||||||
|
if (s[c] == '/')
|
||||||
|
s[c] = '\\';
|
||||||
|
}
|
||||||
|
|
||||||
if (!getsfile(hdlg, "Configuration (*.CFG)\0*.CFG\0All files (*.*)\0*.*\0", "", s, "cfg"))
|
if (!getsfile(hdlg, "Configuration (*.CFG)\0*.CFG\0All files (*.*)\0*.*\0", s, s, "cfg"))
|
||||||
{
|
{
|
||||||
config_open(hdlg);
|
config_open(hdlg);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue