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

459 Commits

Author SHA1 Message Date
Mathias Gibbens
2c9509f988 Add Linux searchable paths created by game-data-packager
With the changes in #22819, it seems reasonable to add a couple of
default searchable paths for Linux that are created by the
`game-data-packager` utility, available in Debian and its various
derivatives.

Signed-off-by: Mathias Gibbens <gibmat@debian.org>
2024-10-11 19:37:12 +00:00
Michał Janiszewski
2d217de178 Fix #22913: Update backtrace.io token for v0.4.15 2024-10-06 15:21:33 +02:00
Michael Bernardi
f110ea14f5 Apply check-code-formatting changes 2024-10-03 10:49:25 +10:00
Harry Hopkinson
e3dc02441a Close #22470: Set default paths for rct1/rct2 saves on Android 2024-09-29 11:06:05 +00:00
Aaron van Geffen
cf516db6dc Split StringTypes.h off from String.hpp; adjust header includes 2024-09-10 23:55:53 +02:00
Michał Janiszewski
1adaaff6d5 Update backtrace token for upcoming release 2024-09-01 10:18:58 +02: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
3fd91038c3 Rename Date.h to Localisation.Date.h to match unit file 2024-07-12 22:18:43 +02:00
Aaron van Geffen
b5ef2693b0 Remove common.h include from all units 2024-07-09 16:45:19 +02:00
Aaron van Geffen
8cef18cd2f Include cassert as needed at unit level 2024-07-09 16:43:03 +02:00
Aaron van Geffen
51873dc0f6 Include Diagnostic.h at unit level 2024-07-09 16:23:31 +02:00
Aaron van Geffen
bda7c0c0d4 Move datetime64 type declaration to new DateTime.h file 2024-07-09 16:09:49 +02:00
Aaron van Geffen
e3bb105a06 Move SSE41 and AVX2 detection into Platform namespace 2024-07-12 14:38:18 +02:00
Aaron van Geffen
617003dff6 Use WIN32_LEAN_AND_MEAN in UiContext and Platform 2024-05-10 12:57:05 +02:00
Aaron van Geffen
a63d86c488 Introduce Config namespace and struct 2024-05-10 12:10:21 +02:00
Duncan
2884e095c9 Don't include windows.h when not used 2024-05-10 09:27:17 +02:00
Aaron van Geffen
a61a561d01 Remove Currency.h include from Localisation.h 2024-05-08 23:41:42 +02:00
Aaron van Geffen
ca6f142a97 Remove Config.h include from many places 2024-05-08 22:29:32 +02:00
Michał Janiszewski
80ee864f37 Update backtrace.io token for upcoming release 2024-05-05 19:47:35 +02:00
Michał Janiszewski
4e8f578075 Update Steam path detection for Linux (#21948)
* Update Steam path detection for Linux

As Steam now uses Proton to install Windows version natively, update
paths so they get found automatically

* Use new Steam path detection on Linux only

This restores Steam path detection on macOS as it doesn't have Proton
2024-05-02 15:05:22 +02:00
Michał Janiszewski
c8f91d3f35 Update backtrace token for upcoming release 2024-04-02 22:11:17 +02:00
Michał Janiszewski
a2762ed321 Update backtrack submission token 2024-03-02 11:41:04 +01:00
AuraSpecs
d11a82aa4f Add Ukrainian Language
Co-authored-by: Gymnasiast <m.o.steenbeek@gmail.com>
2024-02-23 20:37:48 +01:00
Michał Janiszewski
1a74a74988 Update backtrace token for upcoming release 2024-02-03 13:42:47 +01:00
Michał Janiszewski
d7823d3ad3 Update backtrace token for upcoming release 2024-02-03 13:42:01 +01:00
ζeh Matt
8653ad740a Apply missing game state parameter 2024-01-19 16:32:19 +02:00
Andrei BENCSIK
03ddac9c7f Refactor GetInstallPath for linux
simplify the Platform::GetInstallPath (linux) by removing unnecessary
vector, removing unused #ifdef path and using string_views where
appropriate. no vector was actually needed as the prefixes are fixed
(same as the SearchLocations) - using a plain array avoids an
unnecessary allocation (actually a couple as the old code was using
push_back without reserve).

how it was tested?
run the game, check it finds path OK - PASS
run in the debugger, actually loop through OK - PASS
2024-01-07 00:20:05 +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
Michał Janiszewski
bb449ef3cb Update Crash.cpp
Update backtrace token for upcoming release
2023-12-31 14:55:40 +01:00
Michał Janiszewski
beb28ff32a Properly initialize class loader on Android
https://github.com/OpenRCT2/OpenRCT2/pull/20502 changed how startup is
handled. This affected Android as well and changed AndroidClassLoader to
be initialized statically, but this turns out to be problematic due to
JVM not being fully initialized in our context by this time.

To fix this, move AndroidClassLoader initialization to JNI_OnLoad call,
where JVM is fully available.

Additionally, guard against multiple calls to JNI_OnLoad, an issue
present on Linux-like systems (including Android).
2023-10-17 23:55:31 +02:00
Michał Janiszewski
b396f6903b Update Crash.cpp
Update backtrack token for upcoming release
2023-08-27 07:38:30 +02:00
ζeh Matt
3d5e6ea932 Replace Equals with IEquals where appropriate 2023-07-05 23:14:05 +03:00
Matthias Moninger
379287ed0f Remove legacy stuff in common.h (#20523)
* Remove old interop macro

* Remove legacy string macro things

* Unbreak the posix/linux/unix builds

* Add String::IEquals and use it for case insensitive compare

* Add missing include for posix

* Replace _strnicmp with String::StartsWith

* Add LoByte and HiByte into Util.h, swap macros

* Fix android build

* Hopefully last of the string things

* Replace STUB directly with the warning
2023-07-02 12:59:20 +03:00
ζeh Matt
99aea9dba8 Remove dead code 2023-06-30 17:13:35 +03:00
ζeh Matt
ac583569da Remove Platform::CoreInit 2023-06-27 23:35:11 +03:00
ζeh Matt
484523f82f Use static initialization for Android class loader 2023-06-27 23:09:53 +03:00
ζeh Matt
60a2d5c1f6 Use static initialization to get the correct masking function 2023-06-27 23:02:31 +03:00
ζeh Matt
873fff2513 Remove BitCountInit and handle that with static initialization 2023-06-27 22:45:19 +03:00
ζeh Matt
a83337b2da Use chrono for GetTicks and move into Platform.Common.cpp 2023-06-27 22:21:42 +03:00
ζeh Matt
e19738b5d3 Remove Sleep functions and use Common version 2023-06-27 22:11:52 +03:00
ζeh Matt
d8009291c4 Rename Shared.cpp to Platform.Common.cpp 2023-06-27 22:10:16 +03:00
Silent
c4b70358c8 More MAX_PATH removals (#20113)
* Refactor FileScanner to lift a MAX_PATH limit

* Replace Platform::EnsureDirectoryExists with Path::CreateDirectory

* Remove MAX_PATH from Platform.Posix.cpp
2023-05-09 20:08:46 +01:00
Michał Janiszewski
42fa4cb6b9 Update backtrace token (#20117) 2023-05-01 23:03:30 +02:00
undermark5
78aa02fe8a Fix #13130: Android respects device locale (#19419)
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2023-04-13 09:30:18 +00:00
Michael Steenbeek
fd80b4c822 Refactor and clean up date handling (#19666)
* Refactor and clean up date handling

* Remove gDate, remove direct access to days_in_month

* Adjust the MultiLaunch test

* Bump network version

---------

Co-authored-by: ζeh Matt <5415177+ZehMatt@users.noreply.github.com>
2023-04-02 09:25:41 +01:00
Michał Janiszewski
801d760487 Update backtrace token for upcoming release (#19742) 2023-03-28 11:36:17 +02:00
Gymnasiast
fd4c9a7b9d Close #19176, close #19273: Consistent “CmdLine” naming 2023-02-23 00:03:30 +01:00
Duncan
9deed6d98a Replace snakes in Class names OpenRCT2/N*-P* (#19227)
* Replace snakes in Class names OpenRCT2/N*-P*

* Rename PODDate (and TimeOfDay for good measure)

Co-authored-by: Gymnasiast <m.o.steenbeek@gmail.com>
2023-01-20 05:24:44 +00:00
Hielke Morsink
0762fcb601 Rename snake_case functions in OpenRCT2/util folder 2023-01-18 22:44:13 +01:00