mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 14:24:33 +01:00
Refactor FILE_TYPE_S4_CUTOFF to kFileTypeS4Cutoff
This commit is contained in:
@@ -628,7 +628,7 @@ namespace OpenRCT2
|
||||
{
|
||||
parkImporter = ParkImporter::CreateParkFile(*_objectRepository);
|
||||
}
|
||||
else if (info.Version <= FILE_TYPE_S4_CUTOFF)
|
||||
else if (info.Version <= kFileTypeS4Cutoff)
|
||||
{
|
||||
// Save is an S4 (RCT1 format)
|
||||
parkImporter = ParkImporter::CreateS4();
|
||||
|
||||
@@ -48,7 +48,7 @@ struct ClassifiedFileInfo
|
||||
uint32_t Version = 0;
|
||||
};
|
||||
|
||||
#define FILE_TYPE_S4_CUTOFF 2
|
||||
constexpr uint32_t kFileTypeS4Cutoff = 2;
|
||||
bool TryClassifyFile(const std::string& path, ClassifiedFileInfo* result);
|
||||
bool TryClassifyFile(OpenRCT2::IStream* stream, ClassifiedFileInfo* result);
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ static exitcode_t HandleObjectsInfo(CommandLineArgEnumerator* argEnumerator)
|
||||
{
|
||||
parkImporter = ParkImporter::CreateParkFile(objectRepository);
|
||||
}
|
||||
else if (info.Version <= FILE_TYPE_S4_CUTOFF)
|
||||
else if (info.Version <= kFileTypeS4Cutoff)
|
||||
{
|
||||
// Save is an S4 (RCT1 format)
|
||||
parkImporter = ParkImporter::CreateS4();
|
||||
|
||||
Reference in New Issue
Block a user