1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 03:53:07 +01:00

Fix: config and park files not selected on crash (#11251)

This commit is contained in:
Hielke Morsink
2020-04-08 20:00:02 +02:00
committed by GitHub
parent a197e529e8
commit c0486e250e

View File

@@ -266,16 +266,18 @@ static bool OnCrash(
if (SUCCEEDED(coInitializeResult))
{
LPITEMIDLIST pidl = ILCreateFromPathW(dumpPath);
LPITEMIDLIST files[4];
LPITEMIDLIST files[6];
uint32_t numFiles = 0;
files[numFiles++] = ILCreateFromPathW(dumpFilePath);
// There should be no need to check if this file exists, if it doesn't
// it simply shouldn't get selected.
files[numFiles++] = ILCreateFromPathW(dumpFilePathGZIP);
files[numFiles++] = ILCreateFromPathW(configFilePath);
if (savedGameDumped)
{
files[numFiles++] = ILCreateFromPathW(saveFilePath);
files[numFiles++] = ILCreateFromPathW(saveFilePathGZIP);
}
if (with_record)
{