- reworked palookupinfo output.

This commit is contained in:
Christoph Oelckers 2019-10-19 13:27:09 +02:00
parent 4a9f0248d7
commit 2ef89abe08
2 changed files with 45 additions and 20 deletions

View file

@ -455,9 +455,12 @@ void ChooseGame()
if (SUCCEEDED(TaskDialogIndirect(&stTaskConfig, &nResult, NULL, NULL)))
{
nResult -= 1000;
chdir(paths[nResult]);
gi = CheckFrontend();
if (nResult >= 1000 && nResult < 1000 +(int)buttons.Size())
{
nResult -= 1000;
chdir(paths[nResult]);
gi = CheckFrontend();
}
}
if (gi == nullptr) exit(1);
}