Subversion Repositories eduke32

Rev

Rev 1820 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1820 Rev 2543
Line 252... Line 252...
252
252
253
        hwnd = GetDlgItem(pages[TAB_CONFIG], IDCDATA);
253
        hwnd = GetDlgItem(pages[TAB_CONFIG], IDCDATA);
254
254
255
        for (fg = foundgrps; fg; fg=fg->next)
255
        for (fg = foundgrps; fg; fg=fg->next)
256
        {
256
        {
257
            for (i = 0; i<numgrpfiles; i++) if (fg->crcval == grpfiles[i].crcval) break;
257
            for (i = 0; i<NUMGRPFILES; i++) if (fg->crcval == grpfiles[i].crcval) break;
258
            if (i == numgrpfiles) continue;     // unrecognised grp file
258
            if (i == NUMGRPFILES) continue;     // unrecognised grp file
259
            Bsprintf(buf, "%s\t%s", grpfiles[i].name, fg->name);
259
            Bsprintf(buf, "%s\t%s", grpfiles[i].name, fg->name);
260
            j = ListBox_AddString(hwnd, buf);
260
            j = ListBox_AddString(hwnd, buf);
261
            (void)ListBox_SetItemData(hwnd, j, (LPARAM)fg);
261
            (void)ListBox_SetItemData(hwnd, j, (LPARAM)fg);
262
            if (!Bstrcasecmp(fg->name, settings.selectedgrp))(void)ListBox_SetCurSel(hwnd, j);
262
            if (!Bstrcasecmp(fg->name, settings.selectedgrp))(void)ListBox_SetCurSel(hwnd, j);
263
        }
263
        }
Line 780... Line 780...
780
780
781
        if (g_noSetup == 0 && settings.gamedir != NULL)
781
        if (g_noSetup == 0 && settings.gamedir != NULL)
782
            Bstrcpy(g_modDir,settings.gamedir);
782
            Bstrcpy(g_modDir,settings.gamedir);
783
        else Bsprintf(g_modDir,"/");
783
        else Bsprintf(g_modDir,"/");
784
784
785
        for (i = 0; i<numgrpfiles; i++) if (settings.crcval == grpfiles[i].crcval) break;
785
        for (i = 0; i<NUMGRPFILES; i++) if (settings.crcval == grpfiles[i].crcval) break;
786
        if (i != numgrpfiles)
786
        if (i != NUMGRPFILES)
787
            g_gameNamePtr = (char *)grpfiles[i].name;
787
            g_gameNamePtr = (char *)grpfiles[i].name;
788
    }
788
    }
789
789
790
    if (wavedevs)
790
    if (wavedevs)
791
    {
791
    {