mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix: config and park files not selected on crash (#11251)
This commit is contained in:
parent
a197e529e8
commit
c0486e250e
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue