1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00
Commit Graph

58 Commits

Author SHA1 Message Date
Gymnasiast
c69ef062ab Use return {} instead of return "" 2022-01-16 13:18:41 +01:00
Gymnasiast
f917fffe34 Upgrade platform_get_font_path() 2022-01-16 13:17:54 +01:00
Gymnasiast
310ad1e400 Upgrade platform_get_steam_dir() 2022-01-16 13:17:54 +01:00
Gymnasiast
feeadb3c98 Upgrade platform_process_is_elevated() 2022-01-16 13:17:54 +01:00
Gymnasiast
973c5999b0 Upgrade platform_get_locale_temperature_format() 2022-01-16 13:17:53 +01:00
Gymnasiast
90a74df3bc Upgrade platform_get_locale_date_format() 2022-01-16 13:17:53 +01:00
Gymnasiast
95717573f5 Upgrade platform_get_locale_measurement_format() 2022-01-16 13:17:53 +01:00
Gymnasiast
6bcf848b2f Use C++ filesystem for more file/path functions 2022-01-08 19:07:48 +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
12034b2d36 Upgrade platform_get_locale_language() 2022-01-08 12:56:14 +01:00
Gymnasiast
a21e545917 Upgrade platform_get_username() 2022-01-05 15:26:52 +01:00
Hielke Morsink
4b4b3333d6 Remove unnecessary else blocks 2021-09-16 18:31:12 +02:00
Silent
95388cfbb1 Add File::GetSize to get object size in a simpler way
Drastically reduces startup speed because of the
optimization applied to ObjectAsset::GetSize - now the file
size is obtained without reading the entire file into memory.
2021-05-21 19:55:42 +02:00
Tulio Leao
e23eaa164b Extract RequireNewWindow to Platform 2021-03-26 23:17:01 -03:00
Tulio Leao
62fc4c8034 Extract ResolveCasing to Platform 2021-03-26 23:17:01 -03:00
Tulio Leao
c7ae064a4c Extract ShouldIgnoreCase to Platform 2021-03-26 23:17:01 -03:00
Tulio Leao
9a071aef76 Extract GetAbsolutePath to Platform 2021-03-26 23:17:01 -03:00
Tulio Leao
f15bbd220a Extract IsPathSeparator to Platform 2021-03-25 23:45:01 -03:00
Tulio Leao
f372117939 Extract GetLastModified to Platform 2021-03-14 09:36:44 -03:00
Michał Janiszewski
6249635fb8 Guard potentially unused const with proper defines 2021-02-28 23:10:25 +01:00
skdltmxn
c093a50f3f Refactor to use string_view more properly 2021-01-07 01:52:10 +09:00
Gymnasiast
09c6339bd4 Stub Execute() for Win32 2021-01-03 17:53:15 +01:00
Gymnasiast
72cc8df395 Stub FindApp on Windows 2021-01-03 17:53:14 +01:00
Gymnasiast
5f0aed0929 Add .sea support to New Scenario list and extension handling 2020-09-28 21:17:28 +02:00
Tulio Leao
720c17eea6 Cleanup c-style casts from Platform.Win32.cpp 2020-09-10 21:36:21 +02:00
Michał Janiszewski
c6b10bb051 Make GetCurrentExecutableDirectory public (#12791) 2020-08-27 21:03:41 +02:00
Michał Janiszewski
3d12dfec3e Part of #11437: Refactor Win32 RemoveFileAssociations to Platform2 (#12773)
Additionally fixes missing changes from previous refactor in #12036 that
borked WinNT 5.1 support
2020-08-25 23:20:24 +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
frutiemax
508344a088 Close #12174: Remove Formatter additions with uintptr_t 2020-07-11 18:56:12 +02:00
frutiemax
d2542194fa Part of #11437: move window_setup_file_association(s) in Platform2.hpp 2020-06-23 22:58:40 +02:00
Michael Steenbeek
e83b86df4d Replace occurrences of OpenRCT with OpenRCT2 (#11898) 2020-06-08 15:11:07 +02:00
Michał Janiszewski
295a98028e Disable warnings around incompatible function pointer cast (#9543)
This addresses a compilation issue with newer (8+) mingw.

Co-authored-by: Gymnasiast <m.o.steenbeek@gmail.com>
2020-04-24 16:03:03 +02:00
ifimfree
aaaae16d15 Close #11209: Show a warning when the user is running OpenRCT2 in Wine (#11395) 2020-04-23 19:12:54 +02:00
Aaron van Geffen
a56a3fb804 Fix #6766: Changelog window won't open (#10954) 2020-03-17 21:38:15 +01:00
Michał Janiszewski
92e5958ab6 Improve WinNT 5.1/MinGW support (#10869) 2020-03-05 19:35:23 +01:00
Tulio Leao
c4a865384e Move Mac-only str handling functions to Platform (#10264) 2020-01-04 12:44:40 +01: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
muemart
7703774437 Correctly determine size of wchar arrays (#9490) 2019-06-27 19:46:03 +02:00
Aaron van Geffen
2af13904c5 Update copyright notices for 2019. (#8903) 2019-03-17 07:16:15 +00:00
Hielke Morsink
354d973a48 Use std::size instead of Util::CountOf 2018-11-23 21:59:08 +01:00
Ted John
f224f7181d Search for Discord release of RCT2 (#8149) 2018-10-25 10:57:19 +01: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
Hielke Morsink
ce59ed0ba2 Fix include order and defines for Windows builds 2018-07-23 15:57:59 +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
Ted John
ea22c672d0 Only reuse CNG object if Windows 8+ 2018-06-01 21:27:33 +01:00
Hielke Morsink
8d10bfb5a1 Add namespace closing comments 2018-05-04 22:54:43 +02:00