mirror of https://github.com/OpenRCT2/OpenRCT2.git
Refactor FILE_TYPE_S4_CUTOFF to kFileTypeS4Cutoff
This commit is contained in:
parent
47a221de4e
commit
8d478e78a5
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue