mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #9132: System file browser cannot open SV4 files
This commit is contained in:
parent
c4812e08d0
commit
abc13422ed
|
@ -37,6 +37,7 @@
|
|||
- Fix: [#8947] Detection of AVX2 support.
|
||||
- Fix: [#8988] Character sprite lookup noticeably slows down drawing.
|
||||
- Fix: [#9000] Show correct error message if not enough money available.
|
||||
- Fix: [#9132] System file browser cannot open SV4 files.
|
||||
- Fix: [#9152] Spectators can modify ride colours.
|
||||
- Fix: [#9202] Artefacts show when changing ride type as client or using in-game console.
|
||||
- Fix: [#9240] Crash when passing directory instead of save file.
|
||||
|
|
|
@ -431,7 +431,7 @@ static bool browse(bool isSave, char* path, size_t pathSize)
|
|||
{
|
||||
// When the given save type was given, Windows still interprets a filename with a dot in its name as a custom extension,
|
||||
// meaning files like "My Coaster v1.2" will not get the .td6 extension by default.
|
||||
if (get_file_extension_type(path) != fileType)
|
||||
if (isSave && get_file_extension_type(path) != fileType)
|
||||
path_append_extension(path, extension, pathSize);
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue