1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 17:24:47 +01:00

Fix #9132: System file browser cannot open SV4 files

This commit is contained in:
Michael Steenbeek
2019-05-14 22:12:23 +02:00
committed by GitHub
parent c4812e08d0
commit abc13422ed
2 changed files with 2 additions and 1 deletions

View File

@@ -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.

View 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;