Gymnasiast
eb2b0c1537
Move platform_update_palette() to Drawing.cpp
2022-01-16 13:17:54 +01:00
Gymnasiast
6bcf848b2f
Use C++ filesystem for more file/path functions
2022-01-08 19:07:48 +01:00
Gymnasiast
10301507a9
Fix Android
2022-01-08 16:58:57 +01:00
Gymnasiast
919c73d030
C++-ify most path handling
2022-01-08 16:58:57 +01:00
Gymnasiast
3f22b60f94
Upgrade platform_get_locale_currency()
2022-01-08 12:56:14 +01:00
Gymnasiast
e4496c41bd
Upgrade platform_sanitise_filename()
2022-01-05 15:26:52 +01:00
Gymnasiast
de867827a1
Remove update_palette_func
2022-01-05 15:26:52 +01:00
Gymnasiast
77e5defeca
Upgrade platform_original_game_data_exists()
2022-01-05 15:26:51 +01:00
frutiemax
83b2be602f
Empty initialization for Formatter and TextPaint structures
2021-12-30 12:44:58 -05:00
Hielke Morsink
c2d3ca5f85
Automatically deduce std::array types
...
This also improves formatting of some arrays with weird or no indention.
2021-10-14 23:27:28 +02:00
Bryan DiLaura
894be65b6d
Closes #12415 : Refactor CURRENCY_TYPE to strong enum ( #13276 )
...
* closes #12415 CURRENCY_TYPE enum refactor
* reverses unintended change in Linux.cpp
* closes #12415 CurrencyType strong enum
2020-10-25 01:33:06 -03:00
Tulio Leao
e032ba091d
Cleanup c-style casts from Shared.cpp
2020-09-10 21:36:21 +02:00
Matt
30376085cf
Include missing headers
2020-08-05 16:29:29 +02:00
TELK
bf08943929
Fix #12352 : Wrong date format for file names ( #12543 )
...
Issue likely caused by 5ae592ec79
Also see: https://en.cppreference.com/w/cpp/chrono/c/tm
2020-08-01 18:43:19 +02:00
Aaron van Geffen
7b5087f057
Update copyright year to 2020
2020-07-21 15:04:34 +02:00
Duncan
b1f80efbe3
Use u8path on file path ( #12205 )
2020-07-12 21:56:02 +01:00
frutiemax
26ae2dbf04
Part of #11437 : Move PlatformFileExists to Platform2.h ( #12077 )
2020-07-02 12:03:31 -03:00
frutiemax
5ae592ec79
Part of #11437 : Move GetDateLocal and GetTimeLocal in Platform2.h
2020-06-28 21:46:14 +02:00
Ted John
46bb30f8a1
Refactor rct_palette to GamePalette
2020-05-27 20:52:51 +01:00
Michael Steenbeek
d7637cd70f
Replace many C-style casts ( #11720 )
2020-05-11 14:32:56 +02: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
Ted John
7074d6f3ae
Apply review suggestions
2019-05-11 13:57:18 +01:00
Tom Lankhorst
ed353faccf
Implement replace_if condition lambda
...
Fix include typo and CS
2019-05-11 13:54:16 +01:00
Tom Lankhorst
bbd69496b4
Sanitize screenshot path
2019-05-11 13:54:16 +01:00
Aaron van Geffen
2af13904c5
Update copyright notices for 2019. ( #8903 )
2019-03-17 07:16:15 +00:00
Michał Janiszewski
7e769ed662
Fix #7536 : Android build fails to start ( #8554 )
...
This was a regression from #7435 which introduced threads and caused JNI
to misbehave and fail to load our expected classes. Provide a workaround
based on the description in https://stackoverflow.com/a/16302771 which
stores a main thread's class loader and uses that in neighbouring
threads.
2019-01-04 19:48:26 +01:00
ζeh Matt
7d19a5bc77
Refactor memcpy to std::memcpy and memset to std::memset ( #8408 )
2018-12-15 22:23:31 +01:00
Bart Ribbers
8e6eb08275
Fix compilation on musl ( #8067 )
2018-10-09 20:42:02 +02:00
clang-format
d787872cbe
Indent preprocessor directives
2018-07-23 16:00:23 +02:00
clang-format
0b3edc70f2
clang-format platform
2018-07-23 16:00:07 +02:00
Michael Steenbeek
1b08fb4e69
Replace our own integer types with standard ones
2018-06-20 17:30:40 +02:00
Hielke Morsink
0cf256ac9e
Ready copyright notice for clang-format
...
Clang-format sees the text behind `#pragma region` as code and formats it. Instead of stating the copyright and date there, it's now in the comment block right below it. The text "Copyright" is left in the `#pragma region` line, as clang-format sees it as a single identifier.
I took the opportunity to normalize the dates, and add the copyright notice to the source files where it was missing them (except for third-party and the generated resources.h file).
2018-06-15 14:07:34 +02:00
Hielke Morsink
184c46992c
Fix remaining non-empty list initializers
2018-06-05 16:07:54 +02:00
Michał Janiszewski
7d67291910
Synchronise definition guards with declarations for str utils
2018-03-21 22:39:19 +01:00
Michael Steenbeek
d481cca2ed
Remove some redundant casts and fix rct_sprite::AsDuck()
2018-02-15 13:04:25 +01:00
Hielke Morsink
55979a3fff
Remove and replace C typedefs
...
`typedef struct/union/enum name { ... } name_again;` is not needed whe compiling C++, moving the name at the back to be in front of the object and removing `typedef` makes it usable the very same way.
This also replaces typedefs with the using keyword. They have better readability, especially for function pointer types, and would allow more flexibility when used with templates.
2018-02-14 09:42:26 +01:00
Gymnasiast
778ba466c5
Remove almost every extern C block
2018-02-05 16:20:15 +01:00
Gymnasiast
5cc21fd21b
Replace NULL with nullptr in C++ files
2018-01-29 21:33:21 +00:00
Ted John
34d41aeadd
Convert shared.c to C++
2018-01-18 21:12:41 +00:00