1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 14:54:30 +01:00

Create enum class for FileMode

This commit is contained in:
Gymnasiast
2025-03-25 18:23:36 +01:00
parent 0dfc94799a
commit c5fff2bb77
29 changed files with 67 additions and 67 deletions

View File

@@ -258,7 +258,7 @@ void ShortcutManager::LoadLegacyBindings(const fs::path& path)
constexpr int32_t kSupportedFileVersion = 1;
constexpr int32_t kMaxLegacyShortcuts = 85;
auto fs = FileStream(path, FILE_MODE_OPEN);
auto fs = FileStream(path, FileMode::open);
auto version = fs.ReadValue<uint16_t>();
if (version == kSupportedFileVersion)
{