Refactor FILE_TYPE_S4_CUTOFF to kFileTypeS4Cutoff

This commit is contained in:
Gymnasiast 2024-02-23 23:51:44 +01:00
parent 47a221de4e
commit 8d478e78a5
No known key found for this signature in database
GPG Key ID: DBFFF47AB2CA3EDD
3 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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);

View File

@ -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();