mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 00:41:55 +00:00
- tweaking of the game selection display.
This commit is contained in:
parent
cfbcf33c8c
commit
4e3ad17e4a
1 changed files with 4 additions and 1 deletions
|
@ -184,7 +184,10 @@ static void PopulateForm(int32_t pgs)
|
|||
int i=0;
|
||||
for (auto& grp : *gamedata)
|
||||
{
|
||||
FStringf grpinfo("%s %s", grp.FileInfo.name.GetChars(), grp.FileName.GetChars());
|
||||
auto p = grp.FileName.LastIndexOfAny("/\\");
|
||||
auto c = grp.FileName.GetChars();
|
||||
if (p > 0) c += p+1;
|
||||
FStringf grpinfo("%s\t%s", grp.FileInfo.name.GetChars(), c);
|
||||
int const j = ListBox_AddString(hwnd, grpinfo.GetChars());
|
||||
(void)ListBox_SetItemData(hwnd, j, i);
|
||||
i++;
|
||||
|
|
Loading…
Reference in a new issue