1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Move RealNames.cpp,h from localisation to peep folder

This commit is contained in:
Aaron van Geffen
2024-07-12 23:39:59 +02:00
parent 022d7756bd
commit 1c26a6cb41
6 changed files with 24 additions and 10 deletions

View File

@@ -29,7 +29,6 @@
#include "../interface/Window_internal.h"
#include "../localisation/Formatter.h"
#include "../localisation/Formatting.h"
#include "../localisation/Localisation.h"
#include "../management/Finance.h"
#include "../management/Marketing.h"
#include "../management/NewsItem.h"
@@ -38,6 +37,7 @@
#include "../peep/GuestPathfinding.h"
#include "../peep/PeepAnimationData.h"
#include "../peep/PeepSpriteIds.h"
#include "../peep/RealNames.h"
#include "../profiling/Profiling.h"
#include "../ride/Ride.h"
#include "../ride/RideData.h"

View File

@@ -382,6 +382,7 @@
<ClInclude Include="peep\GuestPathfinding.h" />
<ClInclude Include="peep\PeepAnimationData.h" />
<ClInclude Include="peep\PeepSpriteIds.h" />
<ClInclude Include="peep\RealNames.h" />
<ClInclude Include="peep\RideUseSystem.h" />
<ClInclude Include="PlatformEnvironment.h" />
<ClInclude Include="platform\Crash.h" />
@@ -822,7 +823,6 @@
<ClCompile Include="localisation\Localisation.cpp" />
<ClCompile Include="localisation\Localisation.Date.cpp" />
<ClCompile Include="localisation\LocalisationService.cpp" />
<ClCompile Include="localisation\RealNames.cpp" />
<ClCompile Include="management\Award.cpp" />
<ClCompile Include="management\Finance.cpp" />
<ClCompile Include="management\Marketing.cpp" />
@@ -897,6 +897,7 @@
<ClCompile Include="park\ParkFile.cpp" />
<ClCompile Include="peep\GuestPathfinding.cpp" />
<ClCompile Include="peep\PeepAnimationData.cpp" />
<ClCompile Include="peep\RealNames.cpp" />
<ClCompile Include="peep\RideUseSystem.cpp" />
<ClCompile Include="PlatformEnvironment.cpp" />
<ClCompile Include="platform\Crash.cpp" />

View File

@@ -10,6 +10,7 @@
#include "Formatting.h"
#include "../config/Config.h"
#include "../peep/RealNames.h"
#include "../util/Util.h"
#include "Currency.h"
#include "FormatCodes.h"

View File

@@ -19,15 +19,8 @@ void FormatStringToUpper(char* dest, size_t size, StringId format, const void* a
constexpr size_t kUserStringMaxLength = 32;
constexpr uint16_t kRealNameStart = 0xA000;
constexpr uint16_t kRealNameEnd = 0xDFFF;
constexpr size_t CommonTextBufferSize = 512;
// Real name data
extern const char real_name_initials[16];
extern const char* real_names[1024];
extern thread_local char gCommonStringFormatBuffer[CommonTextBufferSize];
extern const StringId ObjectiveNames[12];

View File

@@ -7,7 +7,7 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include "Localisation.h"
#include "RealNames.h"
const char real_name_initials[] = {
'B', 'C', 'D', 'F', 'G', 'H', 'J', 'K', 'L', 'M', 'N', 'P', 'R', 'S', 'T', 'W',

View File

@@ -0,0 +1,19 @@
/*****************************************************************************
* Copyright (c) 2014-2024 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 <cstdint>
constexpr uint16_t kRealNameStart = 0xA000;
constexpr uint16_t kRealNameEnd = 0xDFFF;
// Real name data
extern const char real_name_initials[16];
extern const char* real_names[1024];