Gymnasiast
c5fff2bb77
Create enum class for FileMode
2025-03-25 22:47:08 +01:00
Aaron van Geffen
2302f0d2e3
Rework Localisation includes ( #23789 )
...
* Clean up internal localisation header includes
* Remove some external localisation includes
* Remove dependency on FormatCodes.h from InteractiveConsole.h
* Reduce Formatter.h, Localisation.Date.h includes
2025-02-07 22:36:42 +01:00
Aaron van Geffen
fa06a49302
Update copyright year to 2025 ( #23514 )
2024-12-31 20:30:04 +01:00
Aaron van Geffen
8aeb1d2b98
Remove broken support for object string overrides as well
2024-10-30 22:58:47 +01:00
Aaron van Geffen
9257a9d62d
Remove support for scenario overrides from language files
2024-10-30 22:58:47 +01:00
Gymnasiast
749b331187
Replace C string in scenario name handling
2024-10-30 18:04:45 +01:00
Aaron van Geffen
05e56517ab
Adopt existing namespaces into OpenRCT2 namespace ( #22368 )
...
* Put all of TitleSequenceManager into the same namespace
* Move RideConstructionState into the OpenRCT2 namespace
* Adopt existing namespaces into OpenRCT2 namespace
This adds `using namespace OpenRCT2` to compilation units where appropriate,
as a means to get the codebase to compile until these units have been placed
in a namespace of their own.
2024-07-26 09:59:58 +02:00
Aaron van Geffen
3d5c19de08
Drop Localisation.h include where not required
2024-07-13 13:33:32 +02:00
Aaron van Geffen
b5ef2693b0
Remove common.h include from all units
2024-07-09 16:45:19 +02:00
Aaron van Geffen
51873dc0f6
Include Diagnostic.h at unit level
2024-07-09 16:23:31 +02:00
Aaron van Geffen
9e206d5528
Remove dependency on StringIds.h from Localisation.h ( #22011 )
...
* Remove dependency on StringIds.h from Localisation.h
* Include Language.h in UTF8.cpp for function declarations
* Rename tests/Localisation.cpp to tests/LocalisationTest.cpp
2024-05-10 19:14:05 +00:00
Michał Janiszewski
7b12667ddb
Reduce <algorithm> include ( #21947 )
2024-05-01 13:47:27 +02:00
James103
1d8dc111f1
Replace 2023 with 2024 in copyright headers ( #21139 )
...
Replace all instances of the year 2023 with 2024 in all copyright headers
2024-01-01 12:52:28 +01:00
ζeh Matt
b6ea3b1b47
Avoid constructing temporary string object
2023-07-05 23:14:05 +03:00
ζeh Matt
3d5e6ea932
Replace Equals with IEquals where appropriate
2023-07-05 23:14:05 +03:00
duncanspumpkin
3f2126662f
Properly remove the object override code
2023-05-23 21:43:52 +01:00
duncanspumpkin
86c02b839f
Format and fix tests
2023-05-22 20:07:06 +01:00
duncanspumpkin
dbb04f6a94
Further removal
2023-05-22 08:52:43 +01:00
duncanspumpkin
b58a17c731
Remove localisation object overrides
2023-05-22 08:50:19 +01:00
Silent
8216d00522
Set the container type in LanguagePack::FromFile to std::string
...
The code interpreting fileData assumes the string has a valid null terminator,
which is not guaranteed by std::vector, but is guaranteed by std::string.
2023-02-14 09:50:05 +01:00
Hielke Morsink
6b7dc8fcdb
Rename snake_case functions in openrct2/src folder
...
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk >
2023-01-17 13:24:51 +01:00
Michael Steenbeek
f68b705f9f
Remove malloc in LanguagePack.cpp ( #19111 )
2023-01-10 23:18:13 +00:00
Gymnasiast
784b7d9fcc
Apply review requests from @tupaschoal
2023-01-04 19:43:31 +01:00
James103
73738bbdc8
Replace 2022 with 2023 in copyright headers
...
Replace all instances of the year 2022 with 2023 in all copyright headers
2023-01-01 11:58:01 +01:00
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
Gymnasiast
d3fd31c611
Rename rct_string_id to StringId
2022-07-31 22:30:13 +02:00
germanaizek
958bfbc08a
Using std::move(), correct clear strings, better use '= default;', modernize make_* and replace heavy strlen
2022-05-07 16:05:39 +02:00
Johan Mattsson
c00cc90b1f
Fix bounds checks and a nullptr check
2022-02-03 21:42:12 +01:00
Hielke Morsink
4b4b3333d6
Remove unnecessary else blocks
2021-09-16 18:31:12 +02:00
Hielke Morsink
be4159f9ac
Create std::unique_ptr<ILanguagePack>instead of raw pointer
2021-08-21 00:28:21 +02:00
Michael Steenbeek
1da6ae6b51
Merge pull request #13710 from skdltmxn/refactor/string_view
...
Refactor/string view
2021-01-10 13:37:01 +01:00
skdltmxn
b0a8ebc808
Refactor to use push_back more efficient ( #13726 )
2021-01-08 20:59:55 +00:00
skdltmxn
c093a50f3f
Refactor to use string_view more properly
2021-01-07 01:52:10 +09:00
Ted John
b6a688e540
Refactor format tokens
2020-11-27 18:54:57 +00:00
Ted John
2f7c1aab14
Start eradicating old format codes
2020-11-27 18:54:56 +00:00
Hielke Morsink
f0c1ea1d37
Split declarations and definitions to improve compile times when editing ( #13332 )
...
* Split FileStream declarations and definitions
* Split JobPool declarations and definitions
* Split StringBuilder declarations and definitions
* Split StringReader declarations and definitions
* Split ZoomLevel declarations and definitions
* Fix missing include in FileClassifier.cpp
* Remove pragma once from source files
* Fix missing include in StringBuilder.h
* Update Xcode project
* Fix compilation of tests
Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com >
2020-11-07 12:42:04 +00:00
Ted John
c204767176
Fix RTL for Windows
2020-09-18 19:46:12 +02:00
Gymnasiast
4ff77ebc35
Split RTL implementations to files; add preprocessor guards
2020-09-18 19:46:12 +02:00
Gymnasiast
f11d1294fe
Use FriBidi on Windows, ICU on the rest
2020-09-18 19:46:12 +02:00
Gymnasiast
751810fc24
Use FriBidi for Bidi and shaping instead of ICU
2020-09-18 19:46:12 +02:00
Matt
83355e35cc
Move IStream, MemoryStream, FileStream into OpenRCT2 namespace
2020-08-05 16:29:36 +02:00
Ted John
46d69126ea
Split identifier and legacyIdentifier on Object
2020-05-08 15:28:48 +01:00
Michał Janiszewski
2323cc1596
Use named casts instead of old-style casts
...
Change prepared with clang-tidy and google-readability-casting check
2020-04-22 17:09:29 +02:00
Aaron van Geffen
2af13904c5
Update copyright notices for 2019. ( #8903 )
2019-03-17 07:16:15 +00:00
Michael Steenbeek
ef6f09cf5b
Fix formatting [ci skip]
2018-09-29 22:44:19 +02:00
Michael Steenbeek
3d74c51959
Add missing include
2018-09-29 22:44:19 +02:00
Michael Steenbeek
0ad2c74f0a
Do RTL fixes when loading language pack into memory
2018-09-29 22:44:18 +02:00
Linus Unnebäck
fd07be587a
Remove Math::Clamp in favour of std::clamp
2018-08-12 16:47:12 +01:00
clang-format
737d2c490c
clang-format localisation
2018-07-23 16:00:05 +02:00
Øystein Dale
934e53869c
Fix memory leaks in localisation
...
Assigning a pointer to std::string appears to only perform a copy and
does not transfer ownership of the pointer, thus the allocated memory is
will never be freed.
Implement a method to construct an std::string from a StringBuilder to
avoid memory leaks when retreiving the contents of a StringBuilder and
storing it in a std::string.
2018-07-18 00:07:48 +02:00