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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user