Matt
83355e35cc
Move IStream, MemoryStream, FileStream into OpenRCT2 namespace
2020-08-05 16:29:36 +02:00
Matt
30376085cf
Include missing headers
2020-08-05 16:29:29 +02:00
Aaron van Geffen
7b5087f057
Update copyright year to 2020
2020-07-21 15:04:34 +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
nia
1f220f2d62
Simplify OS-specific FileStream code ( #10270 )
...
Define ftello/fseeko to ftello64/fseeko64 only on Linux,
these functions are Linux-specific extensions.
Define ftello/fseeko to _ftelli64/_fseeki64 on MSC.
Otherwise, just use the standardized ftello/fseeko, and avoid
duplicating code for different names of the same function.
This allows this code to be reused on e.g. NetBSD without piling
on additional #ifdefs for any other POSIX operating systems.
2019-12-19 18:34:31 +01:00
ζeh Matt
7730b35d82
Merge pull request #9571 from ZehMatt/replay-cleanup
...
Replay cleanup
2019-08-05 18:31:03 +02:00
Matt
8ab0ca4f8f
Fix DataSerialiser returning the wrong stream object
2019-07-27 16:06:26 +02:00
Ted John
a1d9e52046
Rename ToUtf16 to ToWideChar
...
This is more correct as wchar_t size can differ, for example Linux typically uses 32 bits for wchar_t where as Windows uses 16 bits.
2019-07-22 23:44:03 +01:00
Ted John
6f61c94dbd
Remove old widechar <-> utf-8 conversion function
2019-07-22 23:44:03 +01:00
ζeh Matt
f7bd6d516a
Fix #9267 : Only check if a file is a directory before opening it ( #9269 )
2019-05-16 08:05:09 +01:00
ζeh Matt
0ff19f071f
Fix #9240 : crash when passing directory instead of save file
2019-05-13 21:34:58 +02:00
Aaron van Geffen
2af13904c5
Update copyright notices for 2019. ( #8903 )
2019-03-17 07:16:15 +00:00
Linus Unnebäck
fd07be587a
Remove Math::Clamp in favour of std::clamp
2018-08-12 16:47:12 +01:00
clang-format
3a4a11f738
clang-format core
2018-07-23 16:00:03 +02:00
Michael Steenbeek
1b08fb4e69
Replace our own integer types with standard ones
2018-06-20 17:30:40 +02:00
Michael Steenbeek
ec3a1e575e
Replace Math::Min and Max with std variants
2018-06-20 17:11:35 +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
Michael Steenbeek
755add6c9a
Compile localisation folder as C++
2018-01-06 18:32:25 +01:00
Michał Janiszewski
00fd18809c
Move extern "C" {} blocks to headers ( #6282 )
2017-09-18 17:05:28 +02:00
David CARLIER
04ed2d78d2
Fix building on FreeBSD
2017-06-27 08:56:03 +02:00
Brian Callahan
fe8f949b3f
Add OpenBSD support.
2017-06-25 23:25:46 +02:00
Marijn van der Werf
8766ec37a1
Add Android project
2017-06-15 14:22:15 +02:00
Michał Janiszewski
79d76759bb
Fix #5516 : Update copyrights for 2017
...
Not all files were necessarily _changed_, but all were touched, see
https://github.com/OpenRCT2/OpenRCT2/pull/4932
2017-06-01 21:55:10 +02:00
Ted John
ac2eb8b5da
Fix FileStream for macOS
2017-05-04 17:29:05 +01:00
Ted John
459d79d2f3
Use FILE instead of SDL for FileStream
2017-05-04 17:27:51 +01:00
Ted John
c379347d59
Use stream for chat log
2017-02-08 22:00:04 +00:00
Ted John
629ccec466
Use write extended mode to fix checksum calculation
...
[ci skip]
2017-02-07 20:14:31 +00:00
Ted John
2518362112
Use streams for SV6 export
2017-02-05 15:45:23 +00:00
Ted John
5d7a712672
Use new S6 importer for title screen and fix issues
2017-02-02 22:00:01 +00:00
Ted John
8998b2ae18
Refactor S6 importer to use IParkImporter interface
2017-02-02 22:00:01 +00:00
Broxzier
60603ae10a
Use types from common.h
2017-01-14 12:37:31 +01:00
Ted John
25bc798ff8
Move contents of src into project sub directory
2017-01-04 17:44:12 +00:00