mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 21:13:05 +01:00
Use constants for .PARK magic value
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "FileClassifier.h"
|
||||
|
||||
#include "ParkFile.h"
|
||||
#include "core/Console.hpp"
|
||||
#include "core/FileStream.h"
|
||||
#include "core/Path.hpp"
|
||||
@@ -76,7 +77,7 @@ static bool TryClassifyAsPark(OpenRCT2::IStream* stream, ClassifiedFileInfo* res
|
||||
try
|
||||
{
|
||||
auto magic = stream->ReadValue<uint32_t>();
|
||||
if (magic == 0x4B524150)
|
||||
if (magic == OpenRCT2::PARK_FILE_MAGIC)
|
||||
{
|
||||
result->Type = FILE_TYPE::PARK;
|
||||
result->Version = 0;
|
||||
|
||||
@@ -71,8 +71,6 @@ static void UpdateFootpathsFromMapping(
|
||||
|
||||
namespace OpenRCT2
|
||||
{
|
||||
constexpr uint32_t PARK_FILE_MAGIC = 0x4B524150; // PARK
|
||||
|
||||
// Current version that is saved.
|
||||
constexpr uint32_t PARK_FILE_CURRENT_VERSION = 0x3;
|
||||
|
||||
|
||||
@@ -7,8 +7,10 @@ struct ObjectRepositoryItem;
|
||||
|
||||
namespace OpenRCT2
|
||||
{
|
||||
constexpr uint32_t PARK_FILE_MAGIC = 0x4B524150; // PARK
|
||||
|
||||
struct IStream;
|
||||
}
|
||||
} // namespace OpenRCT2
|
||||
|
||||
class ParkFileExporter
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user