Hielke Morsink
184c46992c
Fix remaining non-empty list initializers
2018-06-05 16:07:54 +02:00
Michał Janiszewski
f0525d23ae
Remove unused function
...
Last call was removed in 66a6aa95f6
2018-06-03 19:56:11 +02:00
Ted John
ea22c672d0
Only reuse CNG object if Windows 8+
2018-06-01 21:27:33 +01:00
Michał Janiszewski
bda9ae13be
Remove obsolete defines
...
Replaced already by constexprs
2018-05-31 00:22:37 +02:00
Hielke Morsink
8d10bfb5a1
Add namespace closing comments
2018-05-04 22:54:43 +02:00
Hielke Morsink
5327c9feb4
Remove unused windows_get_registry_install_info ( #7442 )
2018-04-23 20:20:03 +02:00
Hielke Morsink
30063984e6
Delete unused function arguments or mark them so ( #7426 )
...
This aims to make future refactoring easier. The arguments are removed where possible, but kept and marked with C++17's [[maybe_unused]] where they could not be removed (e.g. when they are used as a callback, rather than called directly).
I've skipped the rides/<category>/* and peep/* source files, because the rides source files are mostly generated and have a ton of unused variables, and the peep source files are being refactored.
I've also skipped most of window/* source files, because most of the functions are used as callbacks and will be bulk-renamed at some point.
2018-04-20 13:56:37 +02:00
Ted John
e3eff999a7
Fix building for mingw
2018-03-22 20:16:58 +00:00
Ted John
2c627b43ba
Optionally use terminal colour codes
2018-03-22 20:16:58 +00:00
Michał Janiszewski
7d67291910
Synchronise definition guards with declarations for str utils
2018-03-21 22:39:19 +01:00
pkubaj
7adde37f56
Fix build with FreeBSD
2018-03-21 14:26:38 +01:00
Michał Janiszewski
d0ec97bab2
Fix missing PATH_MAX on some Linux toolchains
...
Some toolchains (e.g. clang 7) require explicit include of <linux/limits.h> for PATH_MAX.
2018-03-20 08:18:56 +01:00
Michał Janiszewski
28391eaf5d
Move cstring out of common.h
2018-03-18 23:29:13 +01:00
Michał Janiszewski
229c793b33
Fix NO_TTF builds for Windows and macOS
2018-03-09 16:40:40 +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
Michał Janiszewski
35b86e3aa1
Fix Android assertion ( #7148 )
2018-02-08 07:47:48 +00:00
Gymnasiast
34a6b5ef92
Remove __cplusplus ifdefs
2018-02-05 16:20:15 +01:00
Gymnasiast
778ba466c5
Remove almost every extern C block
2018-02-05 16:20:15 +01:00
Marijn van der Werf
941f433aa8
Use Objective-C++ for macOS platform file
2018-02-05 15:34:45 +01:00
Brian Callahan
e8484d1816
Fix build on OpenBSD and FreeBSD
2018-02-02 12:41:26 +00:00
Richard Jenkins
172b5907fa
Fix platform functions for macOS
2018-02-02 12:41:26 +00:00
Ted John
87cd9f88b3
Rewrite Platform::GetInstallPath
2018-02-02 12:41:26 +00:00
Gymnasiast
5cc21fd21b
Replace NULL with nullptr in C++ files
2018-01-29 21:33:21 +00:00
Ted John
cb44dc5c21
Fix changelog
2018-01-21 11:17:41 +00:00
Michał Janiszewski
a634b7e2cb
Add comment explaining reasoning behind our own getumask()
2018-01-18 22:47:10 +01:00
Michał Janiszewski
c6e2f1a6ea
Fix Android.cpp
2018-01-18 22:42:54 +01:00
Ted John
61450353cb
Fix build for Linux
2018-01-18 21:25:54 +00:00
Michael Steenbeek
f551a150fe
Fix Xcode project
2018-01-18 21:13:38 +00:00
Ted John
974ef800cb
Rename remaining platform c files to cpp
2018-01-18 21:12:41 +00:00
Ted John
d9d2b2373d
Rename crash.h to Crash.h
2018-01-18 21:12:41 +00:00
Ted John
34d41aeadd
Convert shared.c to C++
2018-01-18 21:12:41 +00:00
Richard Jenkins
af76cef94b
Fix bracket placement
2018-01-18 14:08:06 +00:00
Ted John
8630498213
Convert platform/windows.c to C++ ( #7044 )
2018-01-18 12:50:34 +00:00
Ted John
bea500638b
Remove old file enumerator functions from platform
2018-01-18 11:38:52 +01:00
Grant Barker
52ad1e1795
fix make error on macOS
2018-01-17 23:54:57 +00:00
Aaron van Geffen
6a404eb5dc
Make MINGW happy, too.
2018-01-11 20:27:40 +01:00
Richard Jenkins
4a4aa80f31
Fix Windows implementation
2018-01-11 20:27:40 +01:00
Aaron van Geffen
aa82df2647
Experimental: use system date/time settings on Windows.
2018-01-11 20:27:40 +01:00
Michael Steenbeek
6a88d6e04d
Move and rename RCT{1,2,12}.h
2018-01-09 13:36:41 +01:00
Michael Steenbeek
755add6c9a
Compile localisation folder as C++
2018-01-06 18:32:25 +01:00
Ted John
3dcbebcf68
Refactor drawing.c to C++
2018-01-05 22:57:57 +01:00
Ted John
0c3c998177
Refactor lightfx.c to C++
2018-01-05 22:57:55 +01:00
Ted John
02c58a6c5a
Remove custom base Exception class
2018-01-05 18:11:47 +00:00
Michał Janiszewski
33a94fe1bb
Use C++ headers in C++ code
2018-01-04 07:36:54 +01:00
Ted John
0cbc8bea10
Fix compile of Scenario.cpp
2018-01-03 15:07:17 +01:00
Ted John
49f5611bd1
Rename scenario.c|h to cpp
2018-01-03 15:07:17 +01:00
Michał Janiszewski
645b36169d
Move SSE4.1 code to its own file, detect SSE4.1 in runtime
2018-01-01 23:49:09 +01:00
Michał Janiszewski
8089cadc40
Reduce code duplication
2017-12-26 18:08:56 +01:00
Michael Steenbeek
1a9975d683
Compile util and cheats as C++
2017-12-14 10:03:21 +01:00