1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 09:14:58 +01:00
Files
OpenRCT2/src/openrct2/FileClassifier.h
73 b9e677945d Replace 20XX with 2022 (#18158)
* Replace 2020 with 2022

Replace all 2020 headers with 2022

* replace other years with 2022

add missing years
2022-10-01 08:42:14 +01:00

56 lines
1.1 KiB
C++

/*****************************************************************************
* Copyright (c) 2014-2022 OpenRCT2 developers
*
* For a complete list of all authors, please refer to contributors.md
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
*
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#pragma once
#include "common.h"
#include "core/String.hpp"
enum class FileExtension
{
Unknown,
DAT,
SC4,
SV4,
TD4,
SC6,
SV6,
TD6,
PARK,
};
#include <string>
namespace OpenRCT2
{
struct IStream;
}
enum class FILE_TYPE
{
UNDEFINED,
OBJECT,
SAVED_GAME,
SCENARIO,
TRACK_DESIGN,
PARK,
};
struct ClassifiedFileInfo
{
FILE_TYPE Type = FILE_TYPE::UNDEFINED;
uint32_t Version = 0;
};
#define FILE_TYPE_S4_CUTOFF 2
bool TryClassifyFile(const std::string& path, ClassifiedFileInfo* result);
bool TryClassifyFile(OpenRCT2::IStream* stream, ClassifiedFileInfo* result);
FileExtension get_file_extension_type(u8string_view path);